public abstract class RemoteDaemonHttpServlet extends DaemonHttpServlet implements Remote
RemoteHttpServlet
,
DaemonHttpServlet
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Registry |
registry
The registry for the servlet
|
DEFAULT_PORT
Constructor and Description |
---|
RemoteDaemonHttpServlet() |
Modifier and Type | Method and Description |
---|---|
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 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(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.
|
getSocketPort, handleClient
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public RemoteDaemonHttpServlet()
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class DaemonHttpServlet
config
- the servlet configServletException
- if a servlet exception occurspublic void destroy()
destroy
in interface Servlet
destroy
in class DaemonHttpServlet
protected String getRegistryName()
protected int getRegistryPort()
protected void bind()
protected void unbind()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses