Class AbstractODataBasicRequest<T extends ODataResponse>
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.AbstractODataBasicRequest<T>
- Type Parameters:
T- OData response type corresponding to the request implementation.
- All Implemented Interfaces:
ODataBasicRequest<T>,ODataRequest
- Direct Known Subclasses:
AbstractODataInvokeRequest,AbstractODataRetrieveRequest,ODataDeleteRequestImpl,ODataEntityCreateRequestImpl,ODataEntityUpdateRequestImpl,ODataPropertyUpdateRequestImpl,ODataReferenceAddingRequestImpl,ODataValueUpdateRequestImpl
public abstract class AbstractODataBasicRequest<T extends ODataResponse>
extends AbstractODataRequest
implements ODataBasicRequest<T>
Basic request abstract implementation.
-
Field Summary
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
ConstructorsConstructorDescriptionAbstractODataBasicRequest(ODataClient odataClient, HttpMethod method, URI uri) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionAsync request execute.voidbatch(ODataBatchRequest req) Serializes the full request into the given batch request.voidbatch(ODataBatchRequest req, String contentId) Serializes the full request into the given batch request.abstract InputStreamGets payload as an InputStream.voidsetFormat(ContentType contentType) Override configured request Content-Type.Methods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataRequest
addCustomHeader, doExecute, getAccept, getContentType, getDefaultFormat, 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.ODataBasicRequest
executeMethods 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
-
Constructor Details
-
AbstractODataBasicRequest
Constructor.- Parameters:
odataClient- client instance getting this requestmethod- request method.uri- OData request URI.
-
-
Method Details
-
setFormat
Description copied from interface:ODataBasicRequestOverride configured request Content-Type.- Specified by:
setFormatin interfaceODataBasicRequest<T extends ODataResponse>- Parameters:
contentType- request Content-Type.
-
asyncExecute
Description copied from interface:ODataBasicRequestAsync request execute.- Specified by:
asyncExecutein interfaceODataBasicRequest<T extends ODataResponse>- Returns:
Future<ODataResponse>about the executed request.
-
getPayload
Gets payload as an InputStream.- Returns:
- InputStream for entire payload.
-
batch
Serializes the full request into the given batch request.- Parameters:
req- destination batch request.
-
batch
Serializes the full request into the given batch request.This method have to be used to serialize a changeset item with the specified contentId.
- Parameters:
req- destination batch request.contentId- contentId of the changeset item.
-