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
  • Constructor Details

    • ODataBatchResponseImpl

      protected ODataBatchResponseImpl(ODataClient odataClient, org.apache.http.client.HttpClient httpClient, org.apache.http.HttpResponse res)
  • Method Details

    • getBody

      public Iterator<ODataBatchResponseItem> getBody()
      Description copied from interface: ODataBatchResponse
      Get all the batch response items.
      Specified by:
      getBody in interface ODataBatchResponse
      Returns:
      an iterator on batch response items.
    • close

      public void close()
      Description copied from interface: ODataResponse
      Close 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:
      close in interface ODataResponse
      Overrides:
      close in class AbstractODataResponse