Class ODataBatchRequestImpl.ODataBatchResponseImpl
java.lang.Object
org.apache.olingo.client.core.communication.response.AbstractODataResponse
org.apache.olingo.client.core.communication.request.batch.ODataBatchRequestImpl.ODataBatchResponseImpl
- All Implemented Interfaces:
ODataBatchResponse,ODataResponse
- Enclosing class:
- ODataBatchRequestImpl
protected class ODataBatchRequestImpl.ODataBatchResponseImpl
extends AbstractODataResponse
implements ODataBatchResponse
-
Field Summary
Fields inherited from class org.apache.olingo.client.core.communication.response.AbstractODataResponse
batchInfo, hasBeenInitialized, headers, httpClient, LOG, odataClient, payload, res, statusCode, statusMessage -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedODataBatchResponseImpl(ODataClient odataClient, org.apache.http.client.HttpClient httpClient, org.apache.http.HttpResponse res) -
Method Summary
Methods inherited from class org.apache.olingo.client.core.communication.response.AbstractODataResponse
closeHttpResponse, getContentType, getETag, getHeader, getHeaderNames, getRawResponse, getStatusCode, getStatusMessage, initFromBatch, initFromEnclosedPart, initFromHttpResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.olingo.client.api.communication.response.ODataResponse
getContentType, getETag, getHeader, getHeaderNames, getRawResponse, getStatusCode, getStatusMessage, initFromBatch, initFromEnclosedPart, initFromHttpResponse
-
Constructor Details
-
ODataBatchResponseImpl
protected ODataBatchResponseImpl(ODataClient odataClient, org.apache.http.client.HttpClient httpClient, org.apache.http.HttpResponse res)
-
-
Method Details
-
getBody
Description copied from interface:ODataBatchResponseGet all the batch response items.- Specified by:
getBodyin interfaceODataBatchResponse- Returns:
- an iterator on batch response items.
-
close
public void close()Description copied from interface:ODataResponseClose the underlying message entity input stream (if available and open) as well as releases any other resources associated with the response.This 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.
- Specified by:
closein interfaceODataResponse- Overrides:
closein classAbstractODataResponse
-