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
Constructors Constructor Description SimpleSerializationPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldDeserializeFields(Class<?> clazz)
boolean
shouldSerializeFields(Class<?> clazz)
void
validateDeserialize(Class<?> arg0)
void
validateSerialize(Class<?> arg0)
-
-
-
Method Detail
-
shouldDeserializeFields
public boolean shouldDeserializeFields(Class<?> clazz)
- Specified by:
shouldDeserializeFields
in classcom.google.gwt.user.server.rpc.SerializationPolicy
-
shouldSerializeFields
public boolean shouldSerializeFields(Class<?> clazz)
- 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
-
-