public abstract class AbstractODataInvokeRequest<T extends ClientInvokeResult> extends AbstractODataBasicRequest<ODataInvokeResponse<T>> implements ODataInvokeRequest<T>, ODataBatchableRequest
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractODataInvokeRequest.ODataInvokeResponseImpl
Response class about an ODataInvokeRequest.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ClientValue> |
parameters
Function parameters.
|
protected Class<T> |
reference |
httpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
AbstractODataInvokeRequest(ODataClient odataClient,
Class<T> reference,
HttpMethod method,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ODataInvokeResponse<T> |
execute()
Request execute.
|
ContentType |
getDefaultFormat() |
InputStream |
getPayload()
Gets payload as an InputStream.
|
protected abstract ContentType |
getPOSTParameterFormat() |
void |
setFormat(ContentType contentType)
Override configured request Content-Type.
|
void |
setParameters(Map<String,ClientValue> parameters)
Sets operation parameters.
|
asyncExecute, batch, batchaddCustomHeader, 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, waitasyncExecuteaddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getHttpRequest, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArraybatch, batchprotected final Class<T extends ClientInvokeResult> reference
protected Map<String,ClientValue> parameters
public AbstractODataInvokeRequest(ODataClient odataClient, Class<T> reference, HttpMethod method, URI uri)
odataClient - client instance getting this requestreference - reference class for invoke resultmethod - HTTP method of the request.uri - URI that identifies the operation.public void setParameters(Map<String,ClientValue> parameters)
ODataInvokeRequestsetParameters in interface ODataInvokeRequest<T extends ClientInvokeResult>parameters - operation parameters.public ContentType getDefaultFormat()
getDefaultFormat in class AbstractODataRequestpublic void setFormat(ContentType contentType)
ODataBasicRequestsetFormat in interface ODataBasicRequest<ODataInvokeResponse<T extends ClientInvokeResult>>setFormat in class AbstractODataBasicRequest<ODataInvokeResponse<T extends ClientInvokeResult>>contentType - request Content-Type.protected abstract ContentType getPOSTParameterFormat()
public InputStream getPayload()
AbstractODataBasicRequestgetPayload in class AbstractODataBasicRequest<ODataInvokeResponse<T extends ClientInvokeResult>>public ODataInvokeResponse<T> execute()
execute in interface ODataBasicRequest<ODataInvokeResponse<T extends ClientInvokeResult>>Copyright © 2023. All rights reserved.