public class ProtocolResponseHandler extends AbstractResponseHandler<Object>
ProtocolClient ResponseHandler
implementation. Makes use of ProtocolClient.getUnmarshaller()
and ProtocolClient.getObjectMapper() for de-serialization.| Modifier | Constructor and Description |
|---|---|
protected |
ProtocolResponseHandler(ProtocolClient<?> client,
Method method)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
APPLICATION_JSON(HttpEntity entity) |
protected Object |
APPLICATION_XML(HttpEntity entity) |
Object |
handleEntity(HttpEntity entity) |
protected Object |
TEXT_XML(HttpEntity entity) |
handleResponseprotected ProtocolResponseHandler(ProtocolClient<?> client, Method method)
client - The ProtocolClient.method - The protocol Method.public Object handleEntity(HttpEntity entity) throws ClientProtocolException, IOException
handleEntity in class AbstractResponseHandler<Object>ClientProtocolExceptionIOExceptionprotected Object APPLICATION_JSON(HttpEntity entity) throws ClientProtocolException, IOException
ClientProtocolExceptionIOExceptionprotected Object APPLICATION_XML(HttpEntity entity) throws ClientProtocolException, IOException
ClientProtocolExceptionIOExceptionprotected Object TEXT_XML(HttpEntity entity) throws ClientProtocolException, IOException
ClientProtocolExceptionIOExceptionCopyright © 2015–2021. All rights reserved.