T - OData response type corresponding to the request implementation.public abstract class AbstractODataBasicRequest<T extends org.apache.olingo.client.api.communication.response.ODataResponse> extends AbstractODataRequest implements org.apache.olingo.client.api.communication.request.ODataBasicRequest<T>
httpClient, method, odataClient, odataHeaders, request, uriLOG| Constructor and Description |
|---|
AbstractODataBasicRequest(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 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, toByteArraycheckRequest, checkResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteaddCustomHeader, getAccept, getContentType, getHeader, getHeaderNames, getIfMatch, getIfNoneMatch, getMethod, getPrefer, getURI, rawExecute, setAccept, setContentType, setIfMatch, setIfNoneMatch, setPrefer, setURI, setXHTTPMethod, toByteArraypublic AbstractODataBasicRequest(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.Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.