Class AbstractODataStreamedRequest<V extends ODataResponse,T extends ODataPayloadManager<V>>
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>
- Type Parameters:
V- OData response type corresponding to the request implementation.T- OData request payload type corresponding to the request implementation.
- All Implemented Interfaces:
ODataRequest,ODataStreamedRequest<V,T>
- Direct Known Subclasses:
AbstractODataBatchRequest,AbstractODataStreamedEntityRequest,ODataStreamUpdateRequestImpl
public abstract class AbstractODataStreamedRequest<V extends ODataResponse,T extends ODataPayloadManager<V>>
extends AbstractODataRequest
implements ODataStreamedRequest<V,T>
Streamed OData request abstract class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWrapper for actual streamed request's future.protected ODataPayloadManager<V>OData payload stream manager.Fields 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
ConstructorsConstructorDescriptionAbstractODataStreamedRequest(ODataClient odataClient, HttpMethod method, URI uri) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidbatch(ODataBatchRequest req) Writes (and consume) the request onto the given batch stream.voidbatch(ODataBatchRequest req, String contentId) Writes (and consume) the request onto the given batch stream.protected abstract TGets OData request payload management object.Streamed payload manager.Methods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataRequest
addCustomHeader, doExecute, 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.ODataRequest
addCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArray
-
Field Details
-
payloadManager
OData payload stream manager. -
futureWrapper
Wrapper for actual streamed request's future. This holds information about the HTTP request / response currently open.
-
-
Constructor Details
-
AbstractODataStreamedRequest
Constructor.- Parameters:
odataClient- client instance getting this requestmethod- OData request HTTP method.uri- OData request URI.
-
-
Method Details
-
getDefaultFormat
- Specified by:
getDefaultFormatin classAbstractODataRequest
-
getPayloadManager
Gets OData request payload management object.- Returns:
- OData request payload management object.
-
payloadManager
Streamed payload manager.- Specified by:
payloadManagerin interfaceODataStreamedRequest<V extends ODataResponse,T extends ODataPayloadManager<V>> - Returns:
- OData request payload manager object.
-
batch
Writes (and consume) the request onto the given batch stream.Please note that this method will consume the request (execution won't be possible anymore).
- Parameters:
req- destination batch request.
-
batch
Writes (and consume) the request onto the given batch stream.Please note that this method will consume the request (execution won't be possible anymore).
- Parameters:
req- destination batch request.contentId- ContentId header value to be added to the serialization. Use this in case of changeset items.
-