|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.oreilly.servlet.DaemonHttpServlet
com.oreilly.servlet.RemoteDaemonHttpServlet
public abstract class RemoteDaemonHttpServlet
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.
RemoteHttpServlet
,
DaemonHttpServlet
,
Serialized FormField Summary | |
---|---|
protected java.rmi.registry.Registry |
registry
The registry for the servlet |
Fields inherited from class com.oreilly.servlet.DaemonHttpServlet |
---|
DEFAULT_PORT |
Constructor Summary | |
---|---|
RemoteDaemonHttpServlet()
|
Method Summary | |
---|---|
protected void |
bind()
Binds the servlet to the registry. |
void |
destroy()
Halts the servlet's RMI operations and halts the thread listening for socket connections. |
protected java.lang.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. |
void |
init(javax.servlet.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. |
Methods inherited from class com.oreilly.servlet.DaemonHttpServlet |
---|
getSocketPort, handleClient |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.rmi.registry.Registry registry
Constructor Detail |
---|
public RemoteDaemonHttpServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class DaemonHttpServlet
config
- the servlet config
javax.servlet.ServletException
- if a servlet exception occurspublic void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class DaemonHttpServlet
protected java.lang.String getRegistryName()
protected int getRegistryPort()
protected void bind()
protected void unbind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |