protected class ODataBatchRequestImpl.ODataBatchResponseImpl extends AbstractODataResponse implements ODataBatchResponse
batchInfo, hasBeenInitialized, headers, httpClient, LOG, odataClient, payload, res, statusCode, statusMessage| Modifier | Constructor and Description |
|---|---|
protected |
ODataBatchResponseImpl(ODataClient odataClient,
org.apache.http.client.HttpClient httpClient,
org.apache.http.HttpResponse res) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying message entity input stream (if available and open) as well as releases any other resources
associated with the response.
|
Iterator<ODataBatchResponseItem> |
getBody()
Get all the batch response items.
|
closeHttpResponse, getContentType, getETag, getHeader, getHeaderNames, getRawResponse, getStatusCode, getStatusMessage, initFromBatch, initFromEnclosedPart, initFromHttpResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getETag, getHeader, getHeaderNames, getRawResponse, getStatusCode, getStatusMessage, initFromBatch, initFromEnclosedPart, initFromHttpResponseprotected ODataBatchResponseImpl(ODataClient odataClient, org.apache.http.client.HttpClient httpClient, org.apache.http.HttpResponse res)
public Iterator<ODataBatchResponseItem> getBody()
ODataBatchResponsegetBody in interface ODataBatchResponsepublic void close()
ODataResponseThis operation is idempotent, i.e. it can be invoked multiple times with the same effect which also means that calling the close() method on an already closed message instance is legal and has no further effect.
The close() method should be invoked on all instances that contain an un-consumed entity input stream to ensure the resources associated with the instance are properly cleaned-up and prevent potential memory leaks. This is typical for client-side scenarios where application layer code processes only the response headers and ignores the response entity.
close in interface ODataResponseclose in class AbstractODataResponseCopyright © 2023. All rights reserved.