Uses of Class
com.google.gwt.user.server.rpc.SerializationPolicy
Package
Description
Classes used in server-side implementation of remote procedure calls.
Jakarta-specific package for server-only classes.
-
Uses of SerializationPolicy in com.google.gwt.user.server.rpc
Modifier and TypeMethodDescriptionprotected SerializationPolicy
RemoteServiceServlet.doGetSerializationPolicy
(javax.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName) Loads theSerializationPolicy
for given module base URL and strong name.static SerializationPolicy
Returns a default serialization policy.final SerializationPolicy
RemoteServiceServlet.getSerializationPolicy
(String moduleBaseURL, String strongName) RPCRequest.getSerializationPolicy()
Returns theSerializationPolicy
used to decode this request.SerializationPolicyProvider.getSerializationPolicy
(String moduleBaseURL, String serializationPolicyStrongName) Returns aSerializationPolicy
for a given module base URL and serialization policy strong name.static SerializationPolicy
SerializationPolicyLoader.loadFromStream
(InputStream inputStream) Deprecated.static SerializationPolicy
SerializationPolicyLoader.loadFromStream
(InputStream inputStream, List<ClassNotFoundException> classNotFoundExceptions) Loads a SerializationPolicy from an input stream and optionally record anyClassNotFoundException
s.(package private) SerializationPolicy
SerializationPolicyClient.loadPolicy
(String url, SerializationPolicyClient.Logger logger) protected SerializationPolicy
RemoteServiceServlet.loadPolicyFromCodeServer
(String url) Loads a serialization policy from a Super Dev Mode code server.(package private) static SerializationPolicy
RemoteServiceServlet.loadSerializationPolicy
(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName) Loads a serialization policy stored as a servlet resource in the same ServletContext as this servlet.Modifier and TypeMethodDescriptionstatic String
RPC.encodeResponseForFailure
(Method serviceMethod, Throwable cause, SerializationPolicy serializationPolicy) Returns a string that encodes an exception.static String
RPC.encodeResponseForFailure
(Method serviceMethod, Throwable cause, SerializationPolicy serializationPolicy, int flags) static String
RPC.encodeResponseForSuccess
(Method serviceMethod, Object object, SerializationPolicy serializationPolicy) Returns a string that encodes the object.static String
RPC.encodeResponseForSuccess
(Method serviceMethod, Object object, SerializationPolicy serializationPolicy, int flags) static String
RPC.invokeAndEncodeResponse
(Object target, Method serviceMethod, Object[] args, SerializationPolicy serializationPolicy) Returns a string that encodes the result of calling a service method, which could be the value returned by the method or an exception thrown by it.static String
RPC.invokeAndEncodeResponse
(Object target, Method serviceMethod, Object[] args, SerializationPolicy serializationPolicy, int flags) ModifierConstructorDescriptionRPCRequest
(Method method, Object[] parameters, RpcToken rpcToken, SerializationPolicy serializationPolicy, int flags) Construct an RPCRequest.RPCRequest
(Method method, Object[] parameters, SerializationPolicy serializationPolicy, int flags) Construct an RPCRequest. -
Uses of SerializationPolicy in com.google.gwt.user.server.rpc.jakarta
Modifier and TypeMethodDescriptionprotected SerializationPolicy
RemoteServiceServlet.doGetSerializationPolicy
(jakarta.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName) Loads theSerializationPolicy
for given module base URL and strong name.static SerializationPolicy
Returns a default serialization policy.final SerializationPolicy
RemoteServiceServlet.getSerializationPolicy
(String moduleBaseURL, String strongName) (package private) SerializationPolicy
SerializationPolicyClient.loadPolicy
(String url, SerializationPolicyClient.Logger logger) protected SerializationPolicy
RemoteServiceServlet.loadPolicyFromCodeServer
(String url) Loads a serialization policy from a Super Dev Mode code server.(package private) static SerializationPolicy
RemoteServiceServlet.loadSerializationPolicy
(jakarta.servlet.http.HttpServlet servlet, jakarta.servlet.http.HttpServletRequest request, String moduleBaseURL, String strongName) Loads a serialization policy stored as a servlet resource in the same ServletContext as this servlet.Modifier and TypeMethodDescriptionstatic String
RPC.encodeResponseForFailure
(Method serviceMethod, Throwable cause, SerializationPolicy serializationPolicy) Returns a string that encodes an exception.static String
RPC.encodeResponseForFailure
(Method serviceMethod, Throwable cause, SerializationPolicy serializationPolicy, int flags) static String
RPC.encodeResponseForSuccess
(Method serviceMethod, Object object, SerializationPolicy serializationPolicy) Returns a string that encodes the object.static String
RPC.encodeResponseForSuccess
(Method serviceMethod, Object object, SerializationPolicy serializationPolicy, int flags) static String
RPC.invokeAndEncodeResponse
(Object target, Method serviceMethod, Object[] args, SerializationPolicy serializationPolicy) Returns a string that encodes the result of calling a service method, which could be the value returned by the method or an exception thrown by it.static String
RPC.invokeAndEncodeResponse
(Object target, Method serviceMethod, Object[] args, SerializationPolicy serializationPolicy, int flags)
SerializationPolicyLoader.loadFromStream(InputStream, List)