public class ODataBatchRequestImpl extends AbstractODataBatchRequest<ODataBatchResponse,BatchManager> implements ODataBatchRequest
| Modifier and Type | Class and Description |
|---|---|
class |
ODataBatchRequestImpl.BatchManagerImpl
Batch request payload management.
|
protected class |
ODataBatchRequestImpl.ODataBatchResponseImpl |
boundary, expectedResItemsfutureWrapper, payloadManagerhttpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
ODataBatchRequestImpl(ODataClient odataClient,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.HttpResponse |
doExecute()
Builds the request and execute it.
|
protected BatchManager |
getPayloadManager()
Gets OData request payload management object.
|
ODataBatchRequest |
rawAppend(byte[] toBeStreamed)
Appends the given byte array to the payload.
|
ODataBatchRequest |
rawAppend(byte[] toBeStreamed,
int off,
int len)
Appends the given byte array to the payload.
|
addExpectedResItem, batch, getOutputStreambatch, getDefaultFormat, payloadManageraddCustomHeader, getAccept, getContentType, getHeader, getHeader, getHeaderNames, getHttpRequest, 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, waitgetOutputStreampayloadManageraddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArraypublic ODataBatchRequestImpl(ODataClient odataClient, URI uri)
protected BatchManager getPayloadManager()
AbstractODataStreamedRequestgetPayloadManager in class AbstractODataStreamedRequest<ODataBatchResponse,BatchManager>public ODataBatchRequest rawAppend(byte[] toBeStreamed) throws IOException
ODataBatchRequestrawAppend in interface ODataBatchRequesttoBeStreamed - byte array to be appended.IOException - in case of write errors.public ODataBatchRequest rawAppend(byte[] toBeStreamed, int off, int len) throws IOException
ODataBatchRequestrawAppend in interface ODataBatchRequesttoBeStreamed - byte array to be appended.off - byte array offset.len - number of byte to be streamed.IOException - in case of write errors.protected org.apache.http.HttpResponse doExecute()
AbstractODataRequestdoExecute in class AbstractODataRequestCopyright © 2023. All rights reserved.