public abstract class AbstractInstacountDecoder extends Object
ErrorDecoder for marshaling instacount.io API responses into typed java
instances.| Modifier and Type | Field and Description |
|---|---|
protected ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
AbstractInstacountDecoder(ObjectMapper objectMapper)
Required-args Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Errors |
constructErrorsResponse(Response response)
Construct an instance of
Errors from the supplied response. |
protected |
constructReader(Response response)
Helper method to construct an instance of
Reader for reading the JSON response from Instacount. |
public AbstractInstacountDecoder(ObjectMapper objectMapper)
objectMapper - An instance of ObjectMapper.protectedconstructReader(Response response) throws IOException
Reader for reading the JSON response from Instacount.response - IOExceptionprotected Errors constructErrorsResponse(Response response) throws InstacountClientException
Errors from the supplied response.response - An instance of Response that contains a response of the Instacount API.InstacountClientExceptionCopyright © 2015–2016 Instacount. All rights reserved.