|
||||||||||
| 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
com.google.gwt.user.server.rpc.HybridServiceServlet
public class HybridServiceServlet
EXPERIMENTAL and subject to change. Do not use this in production code.
This RemoteServiceServlet provides support for both legacy and deRPC clients at the cost of additional runtime overhead and API complexity.
| Constructor Summary | |
|---|---|
HybridServiceServlet()
|
|
| Method Summary | |
|---|---|
ClientOracle |
getClientOracle()
This method will return null instead of throwing an exception. |
SerializationPolicy |
getSerializationPolicy(java.lang.String moduleBaseURL,
java.lang.String strongName)
Returns a SerializationPolicy for a given module base URL and
serialization policy strong name. |
void |
processCall(ClientOracle clientOracle,
java.lang.String payload,
java.io.OutputStream stream)
Process a call originating from the given request. |
java.lang.String |
processCall(java.lang.String payload)
|
| Methods inherited from class com.google.gwt.rpc.server.RpcServlet |
|---|
processPost |
| 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 HybridServiceServlet()
| Method Detail |
|---|
public ClientOracle getClientOracle()
null instead of throwing an exception.
getClientOracle in class RpcServlet
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 void processCall(ClientOracle clientOracle,
java.lang.String payload,
java.io.OutputStream stream)
throws SerializationException
RpcServletRPC.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.
processCall in class RpcServletclientOracle - 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 java.lang.String processCall(java.lang.String payload)
throws SerializationException
SerializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||