com.oreilly.servlet
Class RemoteDaemonHttpServlet
java.lang.Object
HttpServlet
com.oreilly.servlet.DaemonHttpServlet
com.oreilly.servlet.RemoteDaemonHttpServlet
- All Implemented Interfaces:
- java.rmi.Remote
public abstract class RemoteDaemonHttpServlet
- extends DaemonHttpServlet
- implements java.rmi.Remote
A superclass for any HTTP servlet that wishes to act as an RMI server
and, additionally, accept raw socket connections. Includes the
functionality from both RemoteHttpServlet and DaemonHttpServlet, by
extending DaemonHttpServlet and re-implementing RemoteHttpServlet.
- Version:
- 1.0, 98/09/18
- Author:
- Jason Hunter, Copyright © 1998
- See Also:
RemoteHttpServlet
,
DaemonHttpServlet
Method Summary |
void |
destroy()
Halts the servlet's RMI operations and halts the thread listening for
socket connections. |
void |
init(ServletConfig config)
Begins the servlet's RMI operations and begins a thread listening for
socket connections. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteDaemonHttpServlet
public RemoteDaemonHttpServlet()
init
public void init(ServletConfig config)
throws ServletException
- Begins the servlet's RMI operations and begins a thread listening for
socket connections.
Subclasses that override this method must be sure to first call
super.init(config).
- Overrides:
init
in class DaemonHttpServlet
- Parameters:
config
- the servlet config
- Throws:
ServletException
- if a servlet exception occurs
destroy
public void destroy()
- Halts the servlet's RMI operations and halts the thread listening for
socket connections. Subclasses that
override this method must be sure to first call super.destroy().
- Overrides:
destroy
in class DaemonHttpServlet