public abstract class SerializationPolicy extends Object
RemoteService
.
The serialize and deserialize queries are from the perspective
of the server, not the web browser.Constructor and Description |
---|
SerializationPolicy() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getClientFieldNamesForEnhancedClass(Class<?> clazz)
Returns the field names of the given class known to the client for classes
that are expected to be enhanced on the server to have additional fields,
or null for classes that are not expected to be enhanced.
|
abstract boolean |
shouldDeserializeFields(Class<?> clazz)
Returns
true if the class' fields should be deserialized. |
abstract boolean |
shouldSerializeFields(Class<?> clazz)
Returns
true if the class' fields should be serialized. |
abstract void |
validateDeserialize(Class<?> clazz)
Validates that the specified class should be deserialized from a stream.
|
abstract void |
validateSerialize(Class<?> clazz)
Validates that the specified class should be serialized into a stream.
|
public Set<String> getClientFieldNamesForEnhancedClass(Class<?> clazz)
clazz
- the class to testpublic abstract boolean shouldDeserializeFields(Class<?> clazz)
true
if the class' fields should be deserialized.clazz
- the class to testtrue
if the class' fields should be deserializedpublic abstract boolean shouldSerializeFields(Class<?> clazz)
true
if the class' fields should be serialized.clazz
- the class to testtrue
if the class' fields should be serializedpublic abstract void validateDeserialize(Class<?> clazz) throws SerializationException
clazz
- the class to validateSerializationException
- if the class is not allowed to be
deserializedpublic abstract void validateSerialize(Class<?> clazz) throws SerializationException
clazz
- the class to validateSerializationException
- if the class is not allowed to be serializedCopyright © 2018. All rights reserved.