public interface HttpResultHandler
RestClient. The
interface has been defined to be able to modify details of the HTTP result handling of the
RestClient for special use cases. Usually the default implementation provided
by this bundle is completely sufficient, so a standard user does not need to care about these things.| Modifier and Type | Method and Description |
|---|---|
BulkResponseImpl |
handleJsonBulkResult(java.io.InputStream content)
Create JSON bulk result object.
|
Any |
handleJsonResult(java.io.InputStream content)
Read single JSON object from response stream.
|
java.io.InputStream |
processHttpResponse(HttpUriRequest request,
HttpResponse response)
Check the HTTP response:
JSON response, success status code: return content stream
no or non-JSON response, success status code: consume content and return null.
|
java.io.InputStream processHttpResponse(HttpUriRequest request,
HttpResponse response)
throws java.io.IOException,
RestException
RestException.
java.io.IOExceptionRestExceptionAny handleJsonResult(java.io.InputStream content) throws java.io.IOException
java.io.IOExceptionBulkResponseImpl handleJsonBulkResult(java.io.InputStream content) throws java.io.IOException
java.io.IOException