Class AbstractODataRetrieveRequest<T>
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<ODataRetrieveResponse<T>>
org.apache.olingo.client.core.communication.request.retrieve.AbstractODataRetrieveRequest<T>
- All Implemented Interfaces:
ODataBasicRequest<ODataRetrieveResponse<T>>,ODataBatchableRequest,ODataRequest,ODataRetrieveRequest<T>
- Direct Known Subclasses:
AbstractMetadataRequestImpl,ODataDeltaRequestImpl,ODataEntityRequestImpl,ODataEntitySetIteratorRequestImpl,ODataEntitySetRequestImpl,ODataMediaRequestImpl,ODataPropertyRequestImpl,ODataServiceDocumentRequestImpl,ODataValueRequestImpl
public abstract class AbstractODataRetrieveRequest<T>
extends AbstractODataBasicRequest<ODataRetrieveResponse<T>>
implements ODataRetrieveRequest<T>
This is an abstract representation of an OData retrieve query request returning one or more result item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classResponse abstract class about an ODataRetrieveRequest. -
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
ConstructorsConstructorDescriptionAbstractODataRetrieveRequest(ODataClient odataClient, URI query) Private constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract ODataRetrieveResponse<T>execute()Request execute.This kind of request doesn't have any payload: null will be returned.Methods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest
asyncExecute, batch, batch, setFormatMethods 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
asyncExecute, setFormatMethods inherited from interface org.apache.olingo.client.api.communication.request.ODataBatchableRequest
batch, batchMethods 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
-
AbstractODataRetrieveRequest
Private constructor.- Parameters:
odataClient- client instance getting this requestquery- query to be executed.
-
-
Method Details
-
execute
Description copied from interface:ODataBasicRequestRequest execute.- Specified by:
executein interfaceODataBasicRequest<T>- Returns:
- return an OData response.
-
getPayload
This kind of request doesn't have any payload: null will be returned.- Specified by:
getPayloadin classAbstractODataBasicRequest<ODataRetrieveResponse<T>>- Returns:
- InputStream for entire payload.
-