Class CmsRpcPrefetcher


  • public final class CmsRpcPrefetcher
    extends java.lang.Object
    Utility class for deserializing prefetched RPC data.

    Since:
    8.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getSerializedObjectFromDictionary​(java.lang.Object asyncService, java.lang.String dictionaryName)
      Deserializes the prefetched RPC data with the given dictionary name.
      static java.lang.Object getSerializedObjectFromString​(java.lang.Object asyncService, java.lang.String serializedData)
      Deserializes the prefetched RPC data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSerializedObjectFromDictionary

        public static java.lang.Object getSerializedObjectFromDictionary​(java.lang.Object asyncService,
                                                                         java.lang.String dictionaryName)
                                                                  throws com.google.gwt.user.client.rpc.SerializationException
        Deserializes the prefetched RPC data with the given dictionary name.

        Parameters:
        asyncService - the RPC service instance
        dictionaryName - the global variable name
        Returns:
        the prefetched RPC data
        Throws:
        com.google.gwt.user.client.rpc.SerializationException - if the deserialization fails
      • getSerializedObjectFromString

        public static java.lang.Object getSerializedObjectFromString​(java.lang.Object asyncService,
                                                                     java.lang.String serializedData)
                                                              throws com.google.gwt.user.client.rpc.SerializationException
        Deserializes the prefetched RPC data.

        Parameters:
        asyncService - the RPC service instance
        serializedData - the serialized object data
        Returns:
        the prefetched RPC data
        Throws:
        com.google.gwt.user.client.rpc.SerializationException - if the deserialization fails