| javax.servlet.http.HttpServlet com.google.gwt.user.server.rpc.RemoteServiceServlet
All known Subclasses: test.ServletMappingTestServiceImpl3, com.google.gwt.user.server.rpc.ObjectGraphTestServiceImpl, com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl, com.google.gwt.user.server.rpc.EnumsTestServiceImpl, com.google.gwt.sample.simplerpc.server.SimpleRPCServiceImpl, com.google.gwt.user.server.rpc.ValueTypesTestServiceImpl, test.ServletMappingTestServiceImpl1, com.google.gwt.user.server.rpc.CustomFieldSerializerTestServiceImpl, com.google.gwt.junit.viewer.server.ReportServerImpl, com.google.gwt.user.server.rpc.CollectionsTestServiceImpl, com.google.gwt.user.server.rpc.RemoteServiceServletTestServiceImplBase, com.google.gwt.junit.server.JUnitHostImpl, com.google.gwt.user.server.rpc.UnicodeEscapingServiceImpl, com.google.gwt.user.server.rpc.InheritanceTestServiceImpl, test.ServletMappingTestServiceImpl2,
RemoteServiceServlet | public class RemoteServiceServlet extends HttpServlet implements SerializationPolicyProvider(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.
|
RemoteServiceServlet | public RemoteServiceServlet()(Code) | | The default constructor.
|
doGetSerializationPolicy | protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL, String strongName)(Code) | | Gets the
SerializationPolicy for given module base URL and strong
name if there is one.
Override this method to provide a
SerializationPolicy using an
alternative approach.
Parameters: request - the HTTP request being serviced Parameters: moduleBaseURL - as specified in the incoming payload Parameters: strongName - a strong name that uniquely identifies a serializationpolicy file a SerializationPolicy for the given module base URL andstrong name, or null if there is none |
doPost | final public void doPost(HttpServletRequest request, HttpServletResponse response)(Code) | | Standard HttpServlet method: handle the POST.
This doPost method swallows ALL exceptions, logs them in the
ServletContext, and returns a GENERIC_FAILURE_MSG response with status code
500.
|
doUnexpectedFailure | protected void doUnexpectedFailure(Throwable e)(Code) | | Override this method to control what should happen when an exception
escapes the
RemoteServiceServlet.processCall(String) method. The default implementation
will log the failure and send a generic failure response to the client.
An "expected failure" is an exception thrown by a service method that is
declared in the signature of the service method. These exceptions are
serialized back to the client, and are not passed to this method. This
method is called only for exceptions or errors that are not part of the
service method's signature, or that result from SecurityExceptions,
SerializationExceptions, or other failures within the RPC framework.
Note that if the desired behavior is to both send the GENERIC_FAILURE_MSG
response AND to rethrow the exception, then this method should first send
the GENERIC_FAILURE_MSG response itself (using getThreadLocalResponse), and
then rethrow the exception. Rethrowing the exception will cause it to
escape into the servlet container.
Parameters: e - the exception which was thrown |
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.
|
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)
|
|
|