|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.server.rpc.SerializationPolicy
com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy
public class LegacySerializationPolicy
A serialization policy compatible with GWT 1.3.3 RPC. This is used when no serialization policy file is present.
The set of allowed types are:
IsSerializable
Types that derive from Serializable but do not meet any of the above
criteria may not be serialized as leaf types. However, their fields may be
serialized as super types of a legal type.
| Field Summary |
|---|
| Fields inherited from interface com.google.gwt.user.server.rpc.impl.TypeNameObfuscator |
|---|
SERVICE_INTERFACE_ID |
| Method Summary | |
|---|---|
java.lang.String |
getClassNameForTypeId(java.lang.String id)
Implemented to fail with a useful error message. |
static LegacySerializationPolicy |
getInstance()
|
java.lang.String |
getTypeIdForClass(java.lang.Class<?> clazz)
Implemented to fail with a useful error message. |
boolean |
shouldDeserializeFields(java.lang.Class<?> clazz)
Returns true if the class' fields should be deserialized. |
boolean |
shouldSerializeFields(java.lang.Class<?> clazz)
Returns true if the class' fields should be serialized. |
void |
validateDeserialize(java.lang.Class<?> clazz)
Validates that the specified class should be deserialized from a stream. |
void |
validateSerialize(java.lang.Class<?> clazz)
Validates that the specified class should be serialized into a stream. |
| Methods inherited from class com.google.gwt.user.server.rpc.SerializationPolicy |
|---|
getClientFieldNamesForEnhancedClass |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LegacySerializationPolicy getInstance()
public final java.lang.String getClassNameForTypeId(java.lang.String id)
throws SerializationException
getClassNameForTypeId in interface TypeNameObfuscatorid - the type id that was present in the RPC payload
Class.forName(java.lang.String),
to be instantiated
SerializationException - if there is no class that corresponds to the
obfuscated id
public final java.lang.String getTypeIdForClass(java.lang.Class<?> clazz)
throws SerializationException
getTypeIdForClass in interface TypeNameObfuscatorclazz - the class to be transmitted
SerializationExceptionpublic boolean shouldDeserializeFields(java.lang.Class<?> clazz)
SerializationPolicytrue if the class' fields should be deserialized.
shouldDeserializeFields in class SerializationPolicyclazz - the class to test
true if the class' fields should be deserializedpublic boolean shouldSerializeFields(java.lang.Class<?> clazz)
SerializationPolicytrue if the class' fields should be serialized.
shouldSerializeFields in class SerializationPolicyclazz - the class to test
true if the class' fields should be serialized
public void validateDeserialize(java.lang.Class<?> clazz)
throws SerializationException
SerializationPolicy
validateDeserialize in class SerializationPolicyclazz - the class to validate
SerializationException - if the class is not allowed to be
deserialized
public void validateSerialize(java.lang.Class<?> clazz)
throws SerializationException
SerializationPolicy
validateSerialize in class SerializationPolicyclazz - the class to validate
SerializationException - if the class is not allowed to be serialized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||