public abstract class AbstractODataBatchRequestItem extends AbstractODataStreamer implements org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItem
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasStreamedSomething
Stream started check.
|
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest |
req
OData batch request.
|
LOG| Constructor and Description |
|---|
AbstractODataBatchRequestItem(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
closeItem()
Closes the current item.
|
boolean |
hasStreamedSomething() |
boolean |
isOpen() |
protected void |
streamRequestHeader(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request)
Stream the given request header.
|
protected void |
streamRequestHeader(String contentId)
Stream the given request header.
|
getBodyStreamWriter, newLine, streamprotected boolean hasStreamedSomething
protected org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req
public AbstractODataBatchRequestItem(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
req - OData batch request.public boolean isOpen()
isOpen in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItempublic void close()
close in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItemprotected void streamRequestHeader(String contentId)
Use this method to stream changeset items.
contentId - changeset item id.protected void streamRequestHeader(org.apache.olingo.client.api.communication.request.ODataBatchableRequest request)
request - request to be batched.public boolean hasStreamedSomething()
hasStreamedSomething in interface org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItemprotected abstract void closeItem()
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.