Class CmsRpcPrefetcher

java.lang.Object
org.opencms.gwt.client.rpc.CmsRpcPrefetcher

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

Since:
8.0
  • Method Details

    • getSerializedObjectFromDictionary

      public static Object getSerializedObjectFromDictionary(Object asyncService, 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 Object getSerializedObjectFromString(Object asyncService, 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