public abstract class AbstractODataBatchResponseItem extends Object implements org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator |
batchLineIterator
Batch response line iterator.
|
protected String |
boundary
Batch boundary.
|
protected boolean |
breaking |
protected boolean |
closed
Gives information about the batch response item status.
|
protected org.apache.olingo.client.api.communication.response.ODataResponse |
current
Last cached OData response.
|
protected Iterator<org.apache.olingo.client.api.communication.response.ODataResponse> |
expectedItemsIterator
Expected OData responses iterator.
|
protected static org.slf4j.Logger |
LOG
Logger.
|
protected Map<String,org.apache.olingo.client.api.communication.response.ODataResponse> |
responses
Expected OData responses for the current batch response item.
|
| Constructor and Description |
|---|
AbstractODataBatchResponseItem(boolean isChangeset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResponse(String contentId,
org.apache.olingo.client.api.communication.response.ODataResponse res) |
void |
close() |
protected org.apache.olingo.client.api.communication.response.ODataResponse |
getResponse(String contentId)
Gets response about the given contentId.
|
protected Iterator<org.apache.olingo.client.api.communication.response.ODataResponse> |
getResponseIterator()
Gets OData responses iterator.
|
boolean |
hasNext() |
void |
initFromBatch(org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator batchLineIterator,
String boundary) |
boolean |
isBreaking() |
boolean |
isChangeset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, next, removeprotected static final org.slf4j.Logger LOG
protected final Map<String,org.apache.olingo.client.api.communication.response.ODataResponse> responses
protected Iterator<org.apache.olingo.client.api.communication.response.ODataResponse> expectedItemsIterator
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator batchLineIterator
protected String boundary
protected boolean closed
protected org.apache.olingo.client.api.communication.response.ODataResponse current
protected boolean breaking
public AbstractODataBatchResponseItem(boolean isChangeset)
isChangeset - 'TRUE' if the current batch response item is a changeset.public void addResponse(String contentId, org.apache.olingo.client.api.communication.response.ODataResponse res)
addResponse in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItempublic void initFromBatch(org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator batchLineIterator,
String boundary)
initFromBatch in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItemprotected org.apache.olingo.client.api.communication.response.ODataResponse getResponse(String contentId)
contentId - response identifier (a specific contentId in case of changeset item).protected Iterator<org.apache.olingo.client.api.communication.response.ODataResponse> getResponseIterator()
public boolean hasNext()
public boolean isBreaking()
isBreaking in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItempublic final boolean isChangeset()
isChangeset in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItempublic void close()
close in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItemCopyright © 2013–2017 The Apache Software Foundation. All rights reserved.