Package org.opencms.gwt.client.rpc
Class CmsRpcPrefetcher
- java.lang.Object
-
- org.opencms.gwt.client.rpc.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.
-
-
-
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 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 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 instanceserializedData
- the serialized object data- Returns:
- the prefetched RPC data
- Throws:
com.google.gwt.user.client.rpc.SerializationException
- if the deserialization fails
-
-