| javax.servlet.http.HttpServlet com.google.gwt.user.server.rpc.OpenRemoteServiceServlet
All known Subclasses: org.mortbay.gwt.AsyncRemoteServiceServlet,
OpenRemoteServiceServlet | public class OpenRemoteServiceServlet extends HttpServlet (Code) | | The servlet base class for your RPC service implementations that
automatically deserializes incoming requests from the client and serializes
outgoing responses for client/server RPCs.
This version is a modified version of RemoteServiceServlet. The only changes
have been to remove some final declarations and to convert some private
methods to protected to allow extension of this class.
|
OpenRemoteServiceServlet | public OpenRemoteServiceServlet()(Code) | | The default constructor.
|
getThreadLocalRequest | final protected HttpServletRequest getThreadLocalRequest()(Code) | | Gets the HttpServletRequest object for the current call.
It is stored thread-locally so that simultaneous invocations can have
different request objects.
|
getThreadLocalResponse | final protected HttpServletResponse getThreadLocalResponse()(Code) | | Gets the HttpServletResponse object for the current call.
It is stored thread-locally so that simultaneous invocations can have
different response objects.
|
onAfterResponseSerialized | protected void onAfterResponseSerialized(String serializedResponse)(Code) | | Override this method to examine the serialized response that will be
returned to the client. The default implementation does nothing and need
not be called by subclasses.
|
onBeforeRequestDeserialized | protected void onBeforeRequestDeserialized(String serializedRequest)(Code) | | Override this method to examine the serialized version of the request
payload before it is deserialized into objects. The default
implementation does nothing and need not be called by subclasses.
|
processCall | public String processCall(String payload) throws SerializationException(Code) | | This is public so that it can be unit tested easily without HTTP.
|
respondWithFailure | protected void respondWithFailure(HttpServletResponse response, Throwable caught)(Code) | | Called when the machinery of this class itself has a problem, rather than
the invoked third-party method. It writes a simple 500 message back to
the client.
|
shouldCompressResponse | protected boolean shouldCompressResponse(HttpServletRequest request, HttpServletResponse response, String responsePayload)(Code) | | Determines whether the response to a given servlet request should or
should not be GZIP compressed. This method is only called in cases where
the requestor accepts GZIP encoding.
This implementation currently returns true if the response
string's estimated byte length is longer than 256 bytes. Subclasses can
override this logic.
Parameters: request - the request being served Parameters: response - the response that will be written into Parameters: responsePayload - the payload that is about to be sent to the client true if responsePayload should be GZIP compressed,otherwise false . |
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)
|
|
|