Class AbstractODataBatchRequestItem
java.lang.Object
org.apache.olingo.client.core.communication.request.AbstractODataStreamer
org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequestItem
- All Implemented Interfaces:
ODataBatchRequestItem,ODataStreamer
- Direct Known Subclasses:
ODataChangesetImpl,ODataSingleRequestImpl
public abstract class AbstractODataBatchRequestItem
extends AbstractODataStreamer
implements ODataBatchRequestItem
Abstract representation of a batch request item.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanStream started check.protected ODataBatchRequestOData batch request.Fields inherited from class org.apache.olingo.client.core.communication.request.AbstractODataStreamer
LOGFields inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamer
CRLF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the item.protected abstract voidCloses the current item.booleanChecks if the streaming of the current item is started yet.booleanisOpen()Checks if the current item is still opened.protected voidstreamRequestHeader(String contentId) Stream the given request header.protected voidstreamRequestHeader(ODataBatchableRequest request) Stream the given request header.Methods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataStreamer
getBodyStreamWriter, newLine, streamMethods 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.request.ODataStreamer
getBodyStreamWriter
-
Field Details
-
hasStreamedSomething
protected boolean hasStreamedSomethingStream started check. -
req
OData batch request.
-
-
Constructor Details
-
AbstractODataBatchRequestItem
Constructor.- Parameters:
req- OData batch request.
-
-
Method Details
-
isOpen
public boolean isOpen()Checks if the current item is still opened.- Specified by:
isOpenin interfaceODataBatchRequestItem- Returns:
- 'TRUE' if opened; 'FALSE' otherwise.
-
close
public void close()Closes the item.- Specified by:
closein interfaceODataBatchRequestItem
-
streamRequestHeader
Stream the given request header.Use this method to stream changeset items.
- Parameters:
contentId- changeset item id.
-
streamRequestHeader
Stream the given request header.- Parameters:
request- request to be batched.
-
hasStreamedSomething
public boolean hasStreamedSomething()Checks if the streaming of the current item is started yet.- Specified by:
hasStreamedSomethingin interfaceODataBatchRequestItem- Returns:
- 'TRUE' if started; 'FALSE' otherwise.
-
closeItem
protected abstract void closeItem()Closes the current item.
-