T - OData response type corresponding to the request implementation.public abstract class AbstractODataBasicRequest<T extends ODataResponse> extends AbstractODataRequest implements ODataBasicRequest<T>
httpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
AbstractODataBasicRequest(ODataClient odataClient,
HttpMethod method,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Future<T> |
asyncExecute()
Async request execute.
|
void |
batch(ODataBatchRequest req)
Serializes the full request into the given batch request.
|
void |
batch(ODataBatchRequest req,
String contentId)
Serializes the full request into the given batch request.
|
abstract InputStream |
getPayload()
Gets payload as an InputStream.
|
void |
setFormat(ContentType contentType)
Override configured request Content-Type.
|
addCustomHeader, doExecute, getAccept, getContentType, getDefaultFormat, 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, waitexecuteaddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArraypublic AbstractODataBasicRequest(ODataClient odataClient, HttpMethod method, URI uri)
odataClient - client instance getting this requestmethod - request method.uri - OData request URI.public void setFormat(ContentType contentType)
ODataBasicRequestsetFormat in interface ODataBasicRequest<T extends ODataResponse>contentType - request Content-Type.public final Future<T> asyncExecute()
ODataBasicRequestasyncExecute in interface ODataBasicRequest<T extends ODataResponse>Future<ODataResponse> about the executed request.public abstract InputStream getPayload()
public void batch(ODataBatchRequest req)
req - destination batch request.public void batch(ODataBatchRequest req, String contentId)
This method have to be used to serialize a changeset item with the specified contentId.
req - destination batch request.contentId - contentId of the changeset item.Copyright © 2023. All rights reserved.