Package org.opencms.gwt.client.rpc
Class CmsRpcPrefetcher
java.lang.Object
org.opencms.gwt.client.rpc.CmsRpcPrefetcher
Utility class for deserializing prefetched RPC data.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetSerializedObjectFromDictionary(Object asyncService, String dictionaryName) Deserializes the prefetched RPC data with the given dictionary name.static ObjectgetSerializedObjectFromString(Object asyncService, String serializedData) Deserializes the prefetched RPC data.
-
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 instancedictionaryName- 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 instanceserializedData- the serialized object data- Returns:
- the prefetched RPC data
- Throws:
com.google.gwt.user.client.rpc.SerializationException- if the deserialization fails
-