V - OData response type corresponding to the request implementation.T - OData request payload type corresponding to the request implementation.public abstract class AbstractODataStreamedRequest<V extends ODataResponse,T extends ODataPayloadManager<V>> extends AbstractODataRequest implements ODataStreamedRequest<V,T>
| Modifier and Type | Field and Description |
|---|---|
protected Wrapper<Future<org.apache.http.HttpResponse>> |
futureWrapper
Wrapper for actual streamed request's future.
|
protected ODataPayloadManager<V> |
payloadManager
OData payload stream manager.
|
httpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
AbstractODataStreamedRequest(ODataClient odataClient,
HttpMethod method,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
batch(ODataBatchRequest req)
Writes (and consume) the request onto the given batch stream.
|
void |
batch(ODataBatchRequest req,
String contentId)
Writes (and consume) the request onto the given batch stream.
|
ContentType |
getDefaultFormat() |
protected abstract T |
getPayloadManager()
Gets OData request payload management object.
|
T |
payloadManager()
Streamed payload manager.
|
addCustomHeader, doExecute, 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, waitaddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArrayprotected ODataPayloadManager<V extends ODataResponse> payloadManager
public AbstractODataStreamedRequest(ODataClient odataClient, HttpMethod method, URI uri)
odataClient - client instance getting this requestmethod - OData request HTTP method.uri - OData request URI.public ContentType getDefaultFormat()
getDefaultFormat in class AbstractODataRequestprotected abstract T getPayloadManager()
public T payloadManager()
payloadManager in interface ODataStreamedRequest<V extends ODataResponse,T extends ODataPayloadManager<V>>public void batch(ODataBatchRequest req)
Please note that this method will consume the request (execution won't be possible anymore).
req - destination batch request.public void batch(ODataBatchRequest req, String contentId)
Please note that this method will consume the request (execution won't be possible anymore).
req - destination batch request.contentId - ContentId header value to be added to the serialization. Use this in case of changeset items.Copyright © 2023. All rights reserved.