public final class ServiceResponseHandler extends Object
| Constructor and Description |
|---|
ServiceResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static HistoryRangeResponse |
unmarshallHistoryRangeResponse(org.apache.http.HttpResponse response) |
static HistoryResponse |
unmarshallHistoryResponse(org.apache.http.HttpResponse response)
unmarshallHistoryResponse
Given an HttpResponse object - attempts to deserialize it into
a HistoryResponse object
|
static IngestResponse |
unmarshallIngestResponse(org.apache.http.HttpResponse response)
unmarshallIngestResponse
Given an HttpResponse object - attempts to deserialize it into
an IngestResponse object
|
public static IngestResponse unmarshallIngestResponse(org.apache.http.HttpResponse response) throws IOException, IngestResponseException
response - the HTTPResponse we want to distill into an IngestResponseIOException - - if our entity is somehow corrupt or we can't get itBackOffException - if we have a 503 responseIngestResponseExceptionpublic static HistoryResponse unmarshallHistoryResponse(org.apache.http.HttpResponse response) throws IOException, IngestResponseException
response - the HttpResponse object we are trying to deserializeIOException - - if we have an uncategorized network issueBackOffException - - if have a 503 issueIngestResponseExceptionpublic static HistoryRangeResponse unmarshallHistoryRangeResponse(org.apache.http.HttpResponse response) throws IOException, IngestResponseException
IOExceptionIngestResponseExceptionCopyright © 2018. All rights reserved.