public class XMLRemoteResponseDeserializer extends java.lang.Object implements IRemoteResponseDeserializer
IRemoteResponseDeserializer
. This will be
used to create XML Resource representations and will be registered when the
API is started.Constructor and Description |
---|
XMLRemoteResponseDeserializer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserializeResponse(java.lang.String uri,
IRemoteCall call,
IRemoteCallable callable,
java.util.Map responseHeaders,
byte[] responseBody)
Deserialize remote response.
|
public java.lang.Object deserializeResponse(java.lang.String uri, IRemoteCall call, IRemoteCallable callable, java.util.Map responseHeaders, byte[] responseBody) throws java.io.NotSerializableException
IRemoteResponseDeserializer
deserializeResponse
in interface IRemoteResponseDeserializer
uri
- 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
.null
.java.io.NotSerializableException
- thrown if the responseBody cannot be deserialized.