## Uses of Class
com.google.gwt.user.server.rpc.SerializationPolicy

- Packages that use SerializationPolicy
  Package | Description
  --- | ---
  com.google.gwt.user.server.rpc | Classes used in server-side implementation of remote procedure calls.
  com.google.gwt.user.server.rpc.jakarta | Jakarta-specific package for server-only classes.

- - ### Uses of SerializationPolicy in com.google.gwt.user.server.rpc

    Methods in com.google.gwt.user.server.rpc that return SerializationPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected SerializationPolicy` | RemoteServiceServlet.`doGetSerializationPolicy​(javax.servlet.http.HttpServletRequest request, java.lang.String moduleBaseURL, java.lang.String strongName)` | Loads the `SerializationPolicy` for given module base URL and strong name.
    `static SerializationPolicy` | RPC.`getDefaultSerializationPolicy()` | Returns a default serialization policy.
    `SerializationPolicy` | RemoteServiceServlet.`getSerializationPolicy​(java.lang.String moduleBaseURL, java.lang.String strongName)` |
    `SerializationPolicy` | RPCRequest.`getSerializationPolicy()` | Returns the `SerializationPolicy` used to decode this request.
    `SerializationPolicy` | SerializationPolicyProvider.`getSerializationPolicy​(java.lang.String moduleBaseURL, java.lang.String serializationPolicyStrongName)` | Returns a `SerializationPolicy` for a given module base URL and serialization policy strong name.
    `static SerializationPolicy` | SerializationPolicyLoader.`loadFromStream​(java.io.InputStream inputStream)` | Deprecated. see `SerializationPolicyLoader.loadFromStream(InputStream, List)`
    `static SerializationPolicy` | SerializationPolicyLoader.`loadFromStream​(java.io.InputStream inputStream, java.util.List<java.lang.ClassNotFoundException> classNotFoundExceptions)` | Loads a SerializationPolicy from an input stream and optionally record any `ClassNotFoundException`s.
    `(package private) SerializationPolicy` | SerializationPolicyClient.`loadPolicy​(java.lang.String url, SerializationPolicyClient.Logger logger)` |
    `protected SerializationPolicy` | RemoteServiceServlet.`loadPolicyFromCodeServer​(java.lang.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, java.lang.String moduleBaseURL, java.lang.String strongName)` | Loads a serialization policy stored as a servlet resource in the same ServletContext as this servlet.

    Methods in com.google.gwt.user.server.rpc with parameters of type SerializationPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `static java.lang.String` | RPC.`encodeResponseForFailure​(java.lang.reflect.Method serviceMethod, java.lang.Throwable cause, SerializationPolicy serializationPolicy)` | Returns a string that encodes an exception.
    `static java.lang.String` | RPC.`encodeResponseForFailure​(java.lang.reflect.Method serviceMethod, java.lang.Throwable cause, SerializationPolicy serializationPolicy, int flags)` |
    `static java.lang.String` | RPC.`encodeResponseForSuccess​(java.lang.reflect.Method serviceMethod, java.lang.Object object, SerializationPolicy serializationPolicy)` | Returns a string that encodes the object.
    `static java.lang.String` | RPC.`encodeResponseForSuccess​(java.lang.reflect.Method serviceMethod, java.lang.Object object, SerializationPolicy serializationPolicy, int flags)` |
    `static java.lang.String` | RPC.`invokeAndEncodeResponse​(java.lang.Object target, java.lang.reflect.Method serviceMethod, java.lang.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 java.lang.String` | RPC.`invokeAndEncodeResponse​(java.lang.Object target, java.lang.reflect.Method serviceMethod, java.lang.Object[] args, SerializationPolicy serializationPolicy, int flags)` |

    Constructors in com.google.gwt.user.server.rpc with parameters of type SerializationPolicy
    Constructor | Description
    --- | ---
    `RPCRequest​(java.lang.reflect.Method method, java.lang.Object[] parameters, RpcToken rpcToken, SerializationPolicy serializationPolicy, int flags)` | Construct an RPCRequest.
    `RPCRequest​(java.lang.reflect.Method method, java.lang.Object[] parameters, SerializationPolicy serializationPolicy, int flags)` | Construct an RPCRequest.

  - ### Uses of SerializationPolicy in com.google.gwt.user.server.rpc.jakarta

    Methods in com.google.gwt.user.server.rpc.jakarta that return SerializationPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected SerializationPolicy` | RemoteServiceServlet.`doGetSerializationPolicy​(jakarta.servlet.http.HttpServletRequest request, java.lang.String moduleBaseURL, java.lang.String strongName)` | Loads the `SerializationPolicy` for given module base URL and strong name.
    `static SerializationPolicy` | RPC.`getDefaultSerializationPolicy()` | Returns a default serialization policy.
    `SerializationPolicy` | RemoteServiceServlet.`getSerializationPolicy​(java.lang.String moduleBaseURL, java.lang.String strongName)` |
    `(package private) SerializationPolicy` | SerializationPolicyClient.`loadPolicy​(java.lang.String url, SerializationPolicyClient.Logger logger)` |
    `protected SerializationPolicy` | RemoteServiceServlet.`loadPolicyFromCodeServer​(java.lang.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, java.lang.String moduleBaseURL, java.lang.String strongName)` | Loads a serialization policy stored as a servlet resource in the same ServletContext as this servlet.

    Methods in com.google.gwt.user.server.rpc.jakarta with parameters of type SerializationPolicy
    Modifier and Type | Method | Description
    --- | --- | ---
    `static java.lang.String` | RPC.`encodeResponseForFailure​(java.lang.reflect.Method serviceMethod, java.lang.Throwable cause, SerializationPolicy serializationPolicy)` | Returns a string that encodes an exception.
    `static java.lang.String` | RPC.`encodeResponseForFailure​(java.lang.reflect.Method serviceMethod, java.lang.Throwable cause, SerializationPolicy serializationPolicy, int flags)` |
    `static java.lang.String` | RPC.`encodeResponseForSuccess​(java.lang.reflect.Method serviceMethod, java.lang.Object object, SerializationPolicy serializationPolicy)` | Returns a string that encodes the object.
    `static java.lang.String` | RPC.`encodeResponseForSuccess​(java.lang.reflect.Method serviceMethod, java.lang.Object object, SerializationPolicy serializationPolicy, int flags)` |
    `static java.lang.String` | RPC.`invokeAndEncodeResponse​(java.lang.Object target, java.lang.reflect.Method serviceMethod, java.lang.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 java.lang.String` | RPC.`invokeAndEncodeResponse​(java.lang.Object target, java.lang.reflect.Method serviceMethod, java.lang.Object[] args, SerializationPolicy serializationPolicy, int flags)` |