Class ODataBatchRequestImpl
java.lang.Object
org.apache.olingo.client.core.communication.request.AbstractRequest
org.apache.olingo.client.core.communication.request.AbstractODataRequest
org.apache.olingo.client.core.communication.request.streamed.AbstractODataStreamedRequest<V,T>
org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequest<ODataBatchResponse,BatchManager>
org.apache.olingo.client.core.communication.request.batch.ODataBatchRequestImpl
- All Implemented Interfaces:
ODataBatchRequest,ODataRequest,ODataStreamedRequest<ODataBatchResponse,BatchManager>
public class ODataBatchRequestImpl
extends AbstractODataBatchRequest<ODataBatchResponse,BatchManager>
implements ODataBatchRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBatch request payload management.protected class -
Field Summary
Fields inherited from class org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequest
boundary, expectedResItemsFields inherited from class org.apache.olingo.client.core.communication.request.streamed.AbstractODataStreamedRequest
futureWrapper, payloadManagerFields inherited from class org.apache.olingo.client.core.communication.request.AbstractODataRequest
httpClient, method, odataClient, odataHeaders, request, uriFields inherited from class org.apache.olingo.client.core.communication.request.AbstractRequest
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.HttpResponseBuilds the request and execute it.protected BatchManagerGets OData request payload management object.rawAppend(byte[] toBeStreamed) Appends the given byte array to the payload.rawAppend(byte[] toBeStreamed, int off, int len) Appends the given byte array to the payload.Methods inherited from class org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequest
addExpectedResItem, batch, getOutputStreamMethods inherited from class org.apache.olingo.client.core.communication.request.streamed.AbstractODataStreamedRequest
batch, getDefaultFormat, payloadManagerMethods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataRequest
addCustomHeader, getAccept, getContentType, getHeader, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getResponseTemplate, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArrayMethods inherited from class org.apache.olingo.client.core.communication.request.AbstractRequest
checkRequest, checkResponseMethods 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.batch.ODataBatchRequest
getOutputStreamMethods inherited from interface org.apache.olingo.client.api.communication.request.ODataRequest
addCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArrayMethods inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamedRequest
payloadManager
-
Constructor Details
-
ODataBatchRequestImpl
-
-
Method Details
-
getPayloadManager
Description copied from class:AbstractODataStreamedRequestGets OData request payload management object.- Specified by:
getPayloadManagerin classAbstractODataStreamedRequest<ODataBatchResponse,BatchManager> - Returns:
- OData request payload management object.
-
rawAppend
Description copied from interface:ODataBatchRequestAppends the given byte array to the payload.- Specified by:
rawAppendin interfaceODataBatchRequest- Parameters:
toBeStreamed- byte array to be appended.- Returns:
- the current batch request.
- Throws:
IOException- in case of write errors.
-
rawAppend
Description copied from interface:ODataBatchRequestAppends the given byte array to the payload.- Specified by:
rawAppendin interfaceODataBatchRequest- Parameters:
toBeStreamed- byte array to be appended.off- byte array offset.len- number of byte to be streamed.- Returns:
- the current batch request.
- Throws:
IOException- in case of write errors.
-
doExecute
protected org.apache.http.HttpResponse doExecute()Description copied from class:AbstractODataRequestBuilds the request and execute it.- Overrides:
doExecutein classAbstractODataRequest- Returns:
- HttpReponse object.
-