public final class

SerializationPolicyLoader

extends Object
java.lang.Object
   ↳ com.google.gwt.user.server.rpc.SerializationPolicyLoader

Class Overview

API for loading a SerializationPolicy.

Summary

Constants
String CLIENT_FIELDS_KEYWORD Keyword for listing the serializable fields of an enchanced class that are visible to client code.
String SERIALIZATION_POLICY_FILE_ENCODING Default encoding for serialization policy files.
Public Methods
static String getSerializationPolicyFileName(String serializationPolicyStrongName)
Returns the serialization policy file name from the serialization policy strong name.
static SerializationPolicy loadFromStream(InputStream inputStream)
This method is deprecated. see loadFromStream(InputStream, List)
static SerializationPolicy loadFromStream(InputStream inputStream, List<ClassNotFoundException> classNotFoundExceptions)
Loads a SerializationPolicy from an input stream and optionally record any ClassNotFoundExceptions.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CLIENT_FIELDS_KEYWORD

Keyword for listing the serializable fields of an enchanced class that are visible to client code.

Constant Value: "@ClientFields"

public static final String SERIALIZATION_POLICY_FILE_ENCODING

Default encoding for serialization policy files.

Constant Value: "UTF-8"

Public Methods

public static String getSerializationPolicyFileName (String serializationPolicyStrongName)

Returns the serialization policy file name from the serialization policy strong name.

Parameters
serializationPolicyStrongName the serialization policy strong name
Returns
  • the serialization policy file name from the serialization policy strong name

public static SerializationPolicy loadFromStream (InputStream inputStream)

This method is deprecated.
see loadFromStream(InputStream, List)

Loads a SerializationPolicy from an input stream.

Parameters
inputStream stream to load from
Returns
Throws
IOException if an error occurs while reading the stream
ParseException if the input stream is not properly formatted
ClassNotFoundException if a class specified in the serialization policy cannot be loaded

public static SerializationPolicy loadFromStream (InputStream inputStream, List<ClassNotFoundException> classNotFoundExceptions)

Loads a SerializationPolicy from an input stream and optionally record any ClassNotFoundExceptions.

Parameters
inputStream stream to load the SerializationPolicy from.
classNotFoundExceptions if not null, all of the ClassNotFoundExceptions thrown while loading this serialization policy will be added to this list
Returns
Throws
IOException if an error occurs while reading the stream
ParseException if the input stream is not properly formatted