public abstract class DynamicsAbstractODataBasicRequest<T extends org.apache.olingo.client.api.communication.response.ODataResponse>
extends org.apache.olingo.client.core.communication.request.AbstractODataRequest
implements org.apache.olingo.client.api.communication.request.ODataBasicRequest<T>
Constructor and Description |
---|
DynamicsAbstractODataBasicRequest(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.commons.api.http.HttpMethod method,
URI uri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Future<T> |
asyncExecute() |
void |
batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
Serializes the full request into the given batch request.
|
void |
batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req,
String contentId)
Serializes the full request into the given batch request.
|
protected void |
checkResponse(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.http.HttpResponse response,
String accept) |
protected abstract InputStream |
getPayload()
Gets payload as an InputStream.
|
void |
setFormat(org.apache.olingo.commons.api.format.ContentType contentType) |
addCustomHeader, doExecute, getAccept, getContentType, getDefaultFormat, getHeader, getHeader, getHeaderNames, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getResponseTemplate, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArray
checkRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
addCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArray
public DynamicsAbstractODataBasicRequest(org.apache.olingo.client.api.ODataClient odataClient, org.apache.olingo.commons.api.http.HttpMethod method, URI uri)
odataClient
- client instance getting this requestmethod
- request method.uri
- OData request URI.public void setFormat(org.apache.olingo.commons.api.format.ContentType contentType)
setFormat
in interface org.apache.olingo.client.api.communication.request.ODataBasicRequest<T extends org.apache.olingo.client.api.communication.response.ODataResponse>
public final Future<T> asyncExecute()
asyncExecute
in interface org.apache.olingo.client.api.communication.request.ODataBasicRequest<T extends org.apache.olingo.client.api.communication.response.ODataResponse>
protected abstract InputStream getPayload()
public void batch(org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest req)
req
- destination batch request.public void batch(org.apache.olingo.client.api.communication.request.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.protected void checkResponse(org.apache.olingo.client.api.ODataClient odataClient, org.apache.http.HttpResponse response, String accept)
checkResponse
in class org.apache.olingo.client.core.communication.request.AbstractRequest
Copyright © 2010–2020. All rights reserved.