Class RemoteServiceServlet
public
class
RemoteServiceServlet
extends
HttpServlet
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.
Methods
Method Detail
getThreadLocalRequest
protected HttpServletRequest getThreadLocalRequest()
Gets the
HttpServletRequest
object for the current call. It
is stored thread-locally so that simultaneous invocations can have
different request objects.
onAfterResponseSerialized
protected void
onAfterResponseSerialized(
String serializedResponse)
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.
Parameters
- serializedResponse
-
onBeforeRequestDeserialized
protected void
onBeforeRequestDeserialized(
String serializedRequest)
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.
Parameters
- serializedRequest
-