| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.oreilly.servlet.DaemonHttpServlet com.oreilly.servlet.RemoteDaemonHttpServlet
RemoteDaemonHttpServlet | abstract public class RemoteDaemonHttpServlet extends DaemonHttpServlet implements Remote(Code) | | 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.
See Also: com.oreilly.servlet.RemoteHttpServlet See Also: com.oreilly.servlet.DaemonHttpServlet author: Jason Hunter, Copyright © 1998 version: 1.0, 98/09/18 |
Method Summary | |
protected void | bind() Binds the servlet to the registry. | public void | destroy() Halts the servlet's RMI operations and halts the thread listening for
socket connections. | protected String | getRegistryName() Returns the name under which the servlet should be bound in the
registry. | protected int | getRegistryPort() Returns the port where the registry should be running. | public void | init(ServletConfig config) Begins the servlet's RMI operations and begins a thread listening for
socket connections. | protected void | unbind() Unbinds the servlet from the registry. |
registry | protected Registry registry(Code) | | The registry for the servlet
|
bind | protected void bind()(Code) | | Binds the servlet to the registry. Creates the registry if necessary.
Logs any errors.
|
destroy | public void destroy()(Code) | | 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().
|
getRegistryName | protected String getRegistryName()(Code) | | Returns the name under which the servlet should be bound in the
registry. By default the name is the servlet's class name. This
can be overridden with the registryName init parameter.
the name under which the servlet should be bound in the registry |
getRegistryPort | protected int getRegistryPort()(Code) | | Returns the port where the registry should be running. By default
the port is the default registry port (1099). This can be
overridden with the registryPort init parameter.
the port for the registry |
init | public void init(ServletConfig config) throws ServletException(Code) | | 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).
Parameters: config - the servlet config exception: ServletException - if a servlet exception occurs |
unbind | protected void unbind()(Code) | | Unbinds the servlet from the registry.
Logs any errors.
|
Fields inherited from com.oreilly.servlet.DaemonHttpServlet | protected int DEFAULT_PORT(Code)(Java Doc)
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|