|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet
public class GWTRemoteServiceServlet
Constructor Summary | |
---|---|
GWTRemoteServiceServlet()
The default constructor. |
Method Summary | |
---|---|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This is called internally. |
protected javax.servlet.http.HttpServletRequest |
getThreadLocalRequest()
Gets the HttpServletRequest object for the current call. |
protected javax.servlet.http.HttpServletResponse |
getThreadLocalResponse()
Gets the HttpServletResponse object for the current call. |
protected void |
onAfterResponseSerialized(String serializedResponse)
Override this method to examine the serialized response that will be returned to the client. |
protected void |
onBeforeRequestDeserialized(String serializedRequest)
Override this method to examine the serialized version of the request payload before it is deserialized into objects. |
String |
processCall(String payload)
This is public so that it can be unit tested easily without HTTP. |
protected boolean |
shouldCompressResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String responsePayload)
Determines whether the response to a given servlet request should or should not be GZIP compressed. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GWTRemoteServiceServlet()
Method Detail |
---|
public final void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doPost
in class javax.servlet.http.HttpServlet
public String processCall(String payload) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
protected final javax.servlet.http.HttpServletRequest getThreadLocalRequest()
HttpServletRequest
object for the current call. It
is stored thread-locally so that simultaneous invocations can have
different request objects.
protected final javax.servlet.http.HttpServletResponse getThreadLocalResponse()
HttpServletResponse
object for the current call. It
is stored thread-locally so that simultaneous invocations can have
different response objects.
protected void onAfterResponseSerialized(String serializedResponse)
protected void onBeforeRequestDeserialized(String serializedRequest)
protected boolean shouldCompressResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String responsePayload)
This implementation currently returns true
if the response
string's estimated byte length is longer than 256 bytes. Subclasses can
override this logic.
request
- the request being servedresponse
- the response that will be written intoresponsePayload
- the payload that is about to be sent to the client
true
if responsePayload should be GZIP compressed,
otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |