org.eclipse.ecf.remoteservice.client
Interface IRemoteResponseDeserializer
- All Known Implementing Classes:
- SyndFeedResponseDeserializer, XMLRemoteResponseDeserializer
public interface IRemoteResponseDeserializer
Deserializer for processing call response objects.
- Since:
- 4.0
deserializeResponse
java.lang.Object deserializeResponse(java.lang.String endpoint,
IRemoteCall call,
IRemoteCallable callable,
java.util.Map responseHeaders,
byte[] responseBody)
throws java.io.NotSerializableException
- Deserialize remote response.
- Parameters:
endpoint - the endpoint. Should not be null.call - the call associated with the parameter to serialize. Will not be null.callable - the callable associated with the parameter to serialize. Will not be null.responseHeaders - response headers associated with the successful remote call. May be null.responseBody - the actual response body to deserialize. May be null.
- Returns:
- Object the deserialized response. May be
null.
- Throws:
java.io.NotSerializableException - thrown if the responseBody cannot be deserialized.- Since:
- 8.0