public class AbstractGravityServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
AbstractGravityServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupRequest(javax.servlet.http.HttpServletRequest request) |
protected Message[] |
deserialize(GravityInternal gravity,
javax.servlet.http.HttpServletRequest request) |
protected Message[] |
deserialize(GravityInternal gravity,
javax.servlet.http.HttpServletRequest request,
java.io.InputStream is) |
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
static CommandMessage |
getConnectMessage(javax.servlet.http.HttpServletRequest request) |
protected long |
getLongPollingTimeout() |
void |
init(javax.servlet.ServletConfig config) |
protected GravityInternal |
initializeRequest(GravityInternal gravity,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
removeConnectMessage(javax.servlet.http.HttpServletRequest request) |
protected void |
serialize(GravityInternal gravity,
javax.servlet.http.HttpServletResponse response,
Message[] messages,
ContentType contentType) |
static void |
setConnectMessage(javax.servlet.http.HttpServletRequest request,
Message connect) |
doPost, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static void setConnectMessage(javax.servlet.http.HttpServletRequest request,
Message connect)
public static CommandMessage getConnectMessage(javax.servlet.http.HttpServletRequest request)
public static void removeConnectMessage(javax.servlet.http.HttpServletRequest request)
protected long getLongPollingTimeout()
protected GravityInternal initializeRequest(GravityInternal gravity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected Message[] deserialize(GravityInternal gravity, javax.servlet.http.HttpServletRequest request) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundExceptionjava.io.IOExceptionprotected Message[] deserialize(GravityInternal gravity, javax.servlet.http.HttpServletRequest request, java.io.InputStream is) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundExceptionjava.io.IOExceptionprotected void serialize(GravityInternal gravity, javax.servlet.http.HttpServletResponse response, Message[] messages, ContentType contentType) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionprotected void cleanupRequest(javax.servlet.http.HttpServletRequest request)
protected void doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doDelete in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doHead in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doOptions in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doTrace in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException