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 org.apache.olingo.client.api.communication.response.ODataResponse,T extends org.apache.olingo.client.api.communication.request.ODataPayloadManager<V>> extends AbstractODataRequest implements org.apache.olingo.client.api.communication.request.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 org.apache.olingo.client.api.communication.request.ODataPayloadManager<V> |
payloadManager
OData payload stream manager.
|
httpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
AbstractODataStreamedRequest(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.commons.api.http.HttpMethod method,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
Writes (and consume) the request onto the given batch stream.
|
void |
batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req,
String contentId)
Writes (and consume) the request onto the given batch stream.
|
org.apache.olingo.commons.api.format.ContentType |
getDefaultFormat() |
protected abstract T |
getPayloadManager()
Gets OData request payload management object.
|
T |
payloadManager() |
addCustomHeader, 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 org.apache.olingo.client.api.communication.request.ODataPayloadManager<V extends org.apache.olingo.client.api.communication.response.ODataResponse> payloadManager
public AbstractODataStreamedRequest(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.commons.api.http.HttpMethod method,
URI uri)
odataClient - client instance getting this requestmethod - OData request HTTP method.uri - OData request URI.public org.apache.olingo.commons.api.format.ContentType getDefaultFormat()
getDefaultFormat in class AbstractODataRequestprotected abstract T getPayloadManager()
public T payloadManager()
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).
req - destination batch request.public void batch(org.apache.olingo.client.api.communication.request.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 © 2013–2017 The Apache Software Foundation. All rights reserved.