Package com.logicaldoc.web.websockets
Class SimpleSerializationPolicy
java.lang.Object
com.google.gwt.user.server.rpc.SerializationPolicy
com.logicaldoc.web.websockets.SimpleSerializationPolicy
public class SimpleSerializationPolicy
extends com.google.gwt.user.server.rpc.SerializationPolicy
RPC generates a serialization policy file during GWT compilation. The
serialization policy file contains a whitelist of allowed types which may be
serialized. In this simple implementation there is only the check of the
Serializable interface. Watch out of what are you serializing or you can
perform problem on client side.
- Since:
- 8.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldDeserializeFields
(Class<?> clazz) boolean
shouldSerializeFields
(Class<?> clazz) void
validateDeserialize
(Class<?> arg0) void
validateSerialize
(Class<?> arg0) Methods inherited from class com.google.gwt.user.server.rpc.SerializationPolicy
getClientFieldNamesForEnhancedClass, shouldSerializeFinalFields
-
Constructor Details
-
SimpleSerializationPolicy
public SimpleSerializationPolicy()
-
-
Method Details
-
shouldDeserializeFields
- Specified by:
shouldDeserializeFields
in classcom.google.gwt.user.server.rpc.SerializationPolicy
-
shouldSerializeFields
- Specified by:
shouldSerializeFields
in classcom.google.gwt.user.server.rpc.SerializationPolicy
-
validateDeserialize
public void validateDeserialize(Class<?> arg0) throws com.google.gwt.user.client.rpc.SerializationException - Specified by:
validateDeserialize
in classcom.google.gwt.user.server.rpc.SerializationPolicy
- Throws:
com.google.gwt.user.client.rpc.SerializationException
-
validateSerialize
public void validateSerialize(Class<?> arg0) throws com.google.gwt.user.client.rpc.SerializationException - Specified by:
validateSerialize
in classcom.google.gwt.user.server.rpc.SerializationPolicy
- Throws:
com.google.gwt.user.client.rpc.SerializationException
-