public abstract class AbstractODataBatchRequest<V extends org.apache.olingo.client.api.communication.response.ODataResponse,T extends org.apache.olingo.client.api.communication.request.ODataPayloadManager<V>> extends AbstractODataStreamedRequest<V,T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
boundary
Batch request boundary.
|
protected List<org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem> |
expectedResItems
Expected batch response items.
|
futureWrapper, payloadManagerhttpClient, method, odataClient, odataHeaders, request, uriLOG| Modifier | Constructor and Description |
|---|---|
protected |
AbstractODataBatchRequest(org.apache.olingo.client.api.ODataClient odataClient,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExpectedResItem(org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem item) |
void |
batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
Writes (and consume) the request onto the given batch stream.
|
PipedOutputStream |
getOutputStream() |
batch, getDefaultFormat, getPayloadManager, payloadManageraddCustomHeader, doExecute, getAccept, getContentType, getHeader, getHeader, getHeaderNames, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getResponseTemplate, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArraycheckRequest, checkResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArrayprotected final String boundary
protected final List<org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem> expectedResItems
protected AbstractODataBatchRequest(org.apache.olingo.client.api.ODataClient odataClient,
URI uri)
odataClient - client instance getting this requesturi - batch request URI (http://serviceRoot/$batch)protected void addExpectedResItem(org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem item)
public PipedOutputStream getOutputStream()
public void batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
Please note that this method will consume the request (execution won't be possible anymore).
This operation is unsupported by a batch request.
batch in class AbstractODataStreamedRequest<V extends org.apache.olingo.client.api.communication.response.ODataResponse,T extends org.apache.olingo.client.api.communication.request.ODataPayloadManager<V>>req - destination batch request.Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.