|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
public class RemoteServiceServlet
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.
| Constructor Summary | |
|---|---|
RemoteServiceServlet()
The default constructor. |
|
| Method Summary | |
|---|---|
SerializationPolicy |
getSerializationPolicy(java.lang.String moduleBaseURL,
java.lang.String strongName)
Returns a SerializationPolicy for a given module base URL and
serialization policy strong name. |
java.lang.String |
processCall(java.lang.String payload)
Process a call originating from the given request. |
void |
processPost(HttpServletRequest request,
HttpServletResponse response)
Standard HttpServlet method: handle the POST. |
| Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
doPost |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteServiceServlet()
| Method Detail |
|---|
public final SerializationPolicy getSerializationPolicy(java.lang.String moduleBaseURL,
java.lang.String strongName)
SerializationPolicyProviderSerializationPolicy for a given module base URL and
serialization policy strong name.
getSerializationPolicy in interface SerializationPolicyProvidermoduleBaseURL - the URL for the modulestrongName - strong name of the serialization
policy for the specified module URL
SerializationPolicy for a given module base URL and RPC
strong name; must not return null
public java.lang.String processCall(java.lang.String payload)
throws SerializationException
RPC.invokeAndEncodeResponse(Object, java.lang.reflect.Method, Object[])
method to do the actual work.
Subclasses may optionally override this method to handle the payload in any
way they desire (by routing the request to a framework component, for
instance). The HttpServletRequest and HttpServletResponse
can be accessed via the AbstractRemoteServiceServlet.getThreadLocalRequest() and
AbstractRemoteServiceServlet.getThreadLocalResponse() methods.
payload - the UTF-8 request payload
IncompatibleRemoteServiceException
SerializationException - if we cannot serialize the response
UnexpectedException - if the invocation throws a checked exception
that is not declared in the service method's signature
java.lang.RuntimeException - if the service method throws an unchecked
exception (the exception will be the one thrown by the service)
public final void processPost(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException,
ServletException,
SerializationException
ServletException
SerializationException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||