public class ServletHandler
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ServletHandler.RMICommandHandler |
protected static class |
ServletHandler.ServletClientException
ServletClientException is thrown when an error is detected in a client's
request.
|
protected static class |
ServletHandler.ServletForwardCommand
Class that has an execute command to forward request body to local port
on the server and send server reponse back to client.
|
protected static class |
ServletHandler.ServletGethostnameCommand
Class that has an execute method to return the host name of the server as
the response body.
|
protected static class |
ServletHandler.ServletPingCommand
Class that has an execute method to return an OK status to indicate that
connection was successful.
|
protected static class |
ServletHandler.ServletServerException
ServletServerException is thrown when an error occurs here on the server.
|
protected static class |
ServletHandler.ServletTryHostnameCommand
Class that has an execute method to return a human readable message
describing which host name is available to local Java VMs.
|
| Modifier and Type | Field and Description |
|---|---|
protected static InetAddress |
connectHost |
static boolean |
DEBUG |
static String |
DEBUG_PARAM |
protected boolean |
httpSession |
protected static int[] |
ports |
protected static boolean |
ssl |
static String |
SSL_PARAM |
protected static RMISocketFactory |
sslSocketFactory |
| Constructor and Description |
|---|
ServletHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Provide more intelligible errors for methods that are likely to be
called.
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Execute the command given in the servlet request query string.
|
void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
String |
getServletInfo() |
void |
init(javax.servlet.ServletConfig config)
Once loaded, Java Servlets continue to run until they are unloaded or the
webserver is stopped.
|
doDelete, doHead, doOptions, doTrace, getLastModified, service, servicepublic static boolean DEBUG
protected static int[] ports
protected static InetAddress connectHost
protected boolean httpSession
protected static boolean ssl
protected static RMISocketFactory sslSocketFactory
public static final String DEBUG_PARAM
public static final String SSL_PARAM
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - Standard configuration object for an http servlet.javax.servlet.ServletException - Calling super.init(config) may cause a
servlet exception to be thrown.public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletreq - HTTP servlet request, contains incoming command and argumentsres - HTTP servlet responsejavax.servlet.ServletException - and IOException when invoking methods of
req or res.IOExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletreq - http Servlet request, contains incoming command and argumentsres - http Servlet responsejavax.servlet.ServletException - and IOException when invoking methods of
req or res.IOExceptionpublic void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletCopyright © 2016 Imatia Innovation S.L.. All rights reserved.