|
||||||||||
| 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.rpc.server.RpcServlet
public class RpcServlet
EXPERIMENTAL and subject to change. Do not use this in production 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.
| Constructor Summary | |
|---|---|
RpcServlet()
The default constructor. |
|
| Method Summary | |
|---|---|
ClientOracle |
getClientOracle()
This method creates the ClientOracle that will provide data about the remote client. |
void |
processCall(ClientOracle clientOracle,
java.lang.String payload,
java.io.OutputStream stream)
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 RpcServlet()
| Method Detail |
|---|
public ClientOracle getClientOracle()
throws SerializationException
findClientOracleData(String, String) to obtain access to
ClientOracle data emitted by the GWT compiler.
SerializationException
public void processCall(ClientOracle clientOracle,
java.lang.String payload,
java.io.OutputStream stream)
throws SerializationException
RPC.invokeAndStreamResponse(Object, java.lang.reflect.Method, Object[], ClientOracle, OutputStream)
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.
clientOracle - the ClientOracle that will be used to interpret the
requestpayload - the UTF-8 request payloadstream - the OutputStream that will receive the encoded response
SerializationException - if we cannot serialize the response
public final void processPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException,
SerializationException
java.io.IOException
ServletException
SerializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||