public interface ODataBatchResponseItem extends Iterator<ODataResponse>
Modifier and Type | Method and Description |
---|---|
void |
addResponse(String contentId,
ODataResponse res)
Adds the given OData response template to the current OData batch response item.
|
void |
close()
Closes the current batch responses item including all wrapped OData responses.
|
void |
initFromBatch(ODataBatchLineIterator batchLineIterator,
String boundary)
Initializes ODataResponse template from batch response item part.
|
boolean |
isBreaking()
Checks if the current item is a breaking item like as error item or asynchronous response part.
|
boolean |
isChangeset()
Checks if the current batch response item is a changeset.
|
forEachRemaining, hasNext, next, remove
void addResponse(String contentId, ODataResponse res)
contentId
- changeset contentId in case of changeset; '__RETRIEVE__' in case of retrieve item.res
- OData response template to be added.void initFromBatch(ODataBatchLineIterator batchLineIterator, String boundary)
batchLineIterator
- batch response line iterator.boundary
- batch response boundary.boolean isChangeset()
boolean isBreaking()
void close()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.