Class XMLRemoteResponseDeserializer
java.lang.Object
org.eclipse.ecf.remoteservice.rest.client.XMLRemoteResponseDeserializer
- All Implemented Interfaces:
IRemoteResponseDeserializer
This class is a sample implementation of
IRemoteResponseDeserializer
. This will be
used to create XML Resource representations and will be registered when the
API is started.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponse
(String uri, IRemoteCall call, IRemoteCallable callable, Map responseHeaders, byte[] responseBody) Deserialize remote response.
-
Constructor Details
-
XMLRemoteResponseDeserializer
public XMLRemoteResponseDeserializer()
-
-
Method Details
-
deserializeResponse
public Object deserializeResponse(String uri, IRemoteCall call, IRemoteCallable callable, Map responseHeaders, byte[] responseBody) throws NotSerializableException Description copied from interface:IRemoteResponseDeserializer
Deserialize remote response.- Specified by:
deserializeResponse
in interfaceIRemoteResponseDeserializer
- Parameters:
uri
- the endpoint. Should not benull
.call
- the call associated with the parameter to serialize. Will not benull
.callable
- the callable associated with the parameter to serialize. Will not benull
.responseHeaders
- response headers associated with the successful remote call. May benull
.responseBody
- the actual response body to deserialize. May benull
.- Returns:
- Object the deserialized response. May be
null
. - Throws:
NotSerializableException
- thrown if the responseBody cannot be deserialized.
-