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 Details

    • SimpleSerializationPolicy

      public SimpleSerializationPolicy()
  • Method Details

    • shouldDeserializeFields

      public boolean shouldDeserializeFields(Class<?> clazz)
      Specified by:
      shouldDeserializeFields in class com.google.gwt.user.server.rpc.SerializationPolicy
    • shouldSerializeFields

      public boolean shouldSerializeFields(Class<?> clazz)
      Specified by:
      shouldSerializeFields in class com.google.gwt.user.server.rpc.SerializationPolicy
    • validateDeserialize

      public void validateDeserialize(Class<?> arg0) throws com.google.gwt.user.client.rpc.SerializationException
      Specified by:
      validateDeserialize in class com.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 class com.google.gwt.user.server.rpc.SerializationPolicy
      Throws:
      com.google.gwt.user.client.rpc.SerializationException