| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.oreilly.servlet.RemoteHttpServlet
RemoteHttpServlet | abstract public class RemoteHttpServlet extends HttpServlet implements Remote(Code) | | A superclass for any HTTP servlet that wishes to act as an RMI server.
RemoteHttpServlet begins listening for RMI calls in its
init() method and stops listening in its destroy()
method. To register itself it uses the registry on the local machine
on the port determined by getRegistryPort(). It registers
under the name determined by getRegistryName().
See Also: com.oreilly.servlet.RemoteDaemonHttpServlet 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. | 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. | 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. Causes the servlet to
unbind itself from the registry. Logs any errors. 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. Causes the servlet to export
itself and then bind itself to the registry. Logs any errors.
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.
|
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)
|
|
|