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) |
handleResponse
protected 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>
ClientProtocolException
IOException
protected Object APPLICATION_JSON(HttpEntity entity) throws ClientProtocolException, IOException
ClientProtocolException
IOException
protected Object APPLICATION_XML(HttpEntity entity) throws ClientProtocolException, IOException
ClientProtocolException
IOException
Copyright © 2015–2020 Allen D. Ball. All rights reserved.