@Beta public class ODataRequestReadByKey extends ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath| Constructor and Description |
|---|
ODataRequestReadByKey(String servicePath,
ODataEntityKey entityKey,
StructuredQuery query)
Constructor with StructuredQuery for OData read requests on entity collections directly.
|
ODataRequestReadByKey(String servicePath,
ODataResourcePath entityPath,
String encodedQuery,
ODataProtocol protocol)
Default constructor for OData Read requests.
|
ODataRequestReadByKey(String servicePath,
String entityName,
ODataEntityKey entityKey,
String encodedQuery,
ODataProtocol protocol)
Convenience constructor for OData read requests on entity collections directly.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ODataRequestResultGeneric |
execute(org.apache.http.client.HttpClient httpClient)
Execute the OData request with the provided HttpClient reference.
|
String |
getQueryString() |
URI |
getRelativeUri()
Get the static request URI of the OData resource.
|
String |
getRequestQuery()
Use all OData query information to construct a HTTP request query String.
|
int |
hashCode() |
addHeader, addHeaderIfAbsent, addListener, addQueryParameter, getHeaders, getListeners, getProtocol, getQueryParameters, getResourcePath, getServicePath, setCsrfTokenRetriever, tryExecute, tryExecuteWithCsrfTokenpublic ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull String entityName, @Nonnull ODataEntityKey entityKey, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
ODataRequestReadByKey(String, ODataResourcePath, String, ODataProtocol).servicePath - The OData service path.entityName - The OData entity name.entityKey - The entity key.encodedQuery - Optional: The encoded HTTP query, if any.protocol - The OData protocol to use.public ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
servicePath - The OData service path.entityPath - The ODataResourcePath that identifies the entity to read.encodedQuery - Optional: The encoded HTTP query, if any.protocol - The OData protocol to use.public ODataRequestReadByKey(@Nonnull String servicePath, @Nonnull ODataEntityKey entityKey, @Nonnull StructuredQuery query)
#ODataRequestRead(String, ODataResourcePath, String, ODataProtocol).servicePath - The OData service path.entityKey - The entity key.query - The structured query.@Nonnull public URI getRelativeUri()
ODataRequestGenericgetRelativeUri in class ODataRequestGeneric@Nonnull public String getRequestQuery()
getRequestQuery in class ODataRequestGeneric@Nonnull public ODataRequestResultGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient)
httpClient - The HttpClient.public boolean equals(@Nullable Object o)
equals in class ODataRequestGenericprotected boolean canEqual(@Nullable Object other)
canEqual in class ODataRequestGenericpublic int hashCode()
hashCode in class ODataRequestGenericCopyright © 2021 SAP SE. All rights reserved.