Class ODataEntityRequestImpl<E extends ClientEntity>
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<E>
org.apache.olingo.client.core.communication.request.retrieve.ODataEntityRequestImpl<E>
- All Implemented Interfaces:
ODataBasicRequest<ODataRetrieveResponse<E>>,ODataBatchableRequest,ODataRequest,ODataEntityRequest<E>,ODataRetrieveRequest<E>
public class ODataEntityRequestImpl<E extends ClientEntity>
extends AbstractODataRetrieveRequest<E>
implements ODataEntityRequest<E>
This class implements an OData retrieve query request returning a single entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassResponse class about an ODataEntityRequest.Nested classes/interfaces inherited from class org.apache.olingo.client.core.communication.request.retrieve.AbstractODataRetrieveRequest
AbstractODataRetrieveRequest.AbstractODataRetrieveResponse -
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
ConstructorsConstructorDescriptionODataEntityRequestImpl(ODataClient odataClient, URI query) Private constructor. -
Method Summary
Methods inherited from class org.apache.olingo.client.core.communication.request.retrieve.AbstractODataRetrieveRequest
getPayloadMethods 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, 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
-
ODataEntityRequestImpl
Private constructor.- Parameters:
odataClient- client instance getting this requestquery- query to be executed.
-
-
Method Details
-
getDefaultFormat
- Specified by:
getDefaultFormatin classAbstractODataRequest
-
execute
Description copied from interface:ODataBasicRequestRequest execute.- Specified by:
executein interfaceODataBasicRequest<E extends ClientEntity>- Specified by:
executein classAbstractODataRetrieveRequest<E extends ClientEntity>- Returns:
- return an OData response.
-