Package org.pentaho.platform.web.servlet
Class AbstractGwtRpcProxyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
-
- com.google.gwt.user.server.rpc.RemoteServiceServlet
-
- org.pentaho.platform.web.servlet.AbstractGwtRpcProxyServlet
-
- All Implemented Interfaces:
com.google.gwt.user.server.rpc.SerializationPolicyProvider
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
GwtRpcPluginProxyServlet
,GwtRpcProxyServlet
public abstract class AbstractGwtRpcProxyServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet
Base class for GWT RPC proxying servlets, which allows developers to write GWT Services as Pojos and have the GWT client POST requests to subclasses of this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGwtRpcProxyServlet()
protected
AbstractGwtRpcProxyServlet(IGwtRpcSerializationPolicyCache serializationPolicyCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.google.gwt.user.server.rpc.SerializationPolicy
doGetSerializationPolicy(javax.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName)
protected void
doUnexpectedFailure(Throwable e)
protected abstract AbstractGwtRpc
getRpc(javax.servlet.http.HttpServletRequest httpRequest)
IGwtRpcSerializationPolicyCache
getSerializationPolicyCache()
String
processCall(String requestPayload)
protected String
readContent(javax.servlet.http.HttpServletRequest httpRequest)
-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
-
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Constructor Detail
-
AbstractGwtRpcProxyServlet
protected AbstractGwtRpcProxyServlet()
-
AbstractGwtRpcProxyServlet
protected AbstractGwtRpcProxyServlet(@Nullable IGwtRpcSerializationPolicyCache serializationPolicyCache)
-
-
Method Detail
-
getSerializationPolicyCache
@NonNull public IGwtRpcSerializationPolicyCache getSerializationPolicyCache()
-
doUnexpectedFailure
protected void doUnexpectedFailure(Throwable e)
- Overrides:
doUnexpectedFailure
in classcom.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
-
getRpc
@NonNull protected abstract AbstractGwtRpc getRpc(@NonNull javax.servlet.http.HttpServletRequest httpRequest)
-
readContent
protected String readContent(javax.servlet.http.HttpServletRequest httpRequest)
- Overrides:
readContent
in classcom.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
-
processCall
public String processCall(String requestPayload) throws com.google.gwt.user.client.rpc.SerializationException
- Overrides:
processCall
in classcom.google.gwt.user.server.rpc.RemoteServiceServlet
- Throws:
com.google.gwt.user.client.rpc.SerializationException
-
-