@Beta public class ODataRequestRead extends ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath| Constructor and Description |
|---|
ODataRequestRead(String servicePath,
ODataResourcePath entityPath,
String encodedQuery,
ODataProtocol protocol)
Default constructor for OData Read request.
|
ODataRequestRead(String servicePath,
ODataResourcePath entityPath,
StructuredQuery query)
Constructor with StructuredQuery for OData read requests on entity collections directly.
|
ODataRequestRead(String servicePath,
String entityName,
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(UriEncodingStrategy strategy)
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, getRelativeUri, getResourcePath, getServicePath, setCsrfTokenRetriever, tryExecute, tryExecuteWithCsrfTokenpublic ODataRequestRead(@Nonnull String servicePath, @Nonnull String entityName, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
ODataRequestRead(String, ODataResourcePath, String, ODataProtocol).servicePath - The OData service path.entityName - The OData entity name.encodedQuery - Optional: The encoded HTTP query, if any.protocol - The OData protocol to use.public ODataRequestRead(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
Note: The query string queryString must not contain characters that are forbidden in URLs, like spaces.
If forbidden characters are present, an IllegalArgumentException is thrown.
Build an instance of StructuredQuery and pass the value of
StructuredQuery.getEncodedQueryString() as queryString to this method.
Alternatively, use UrlEscapers.urlFragmentEscaper() from the Guava library to escape the query string
before passing it here.
servicePath - The OData service path.entityPath - The ODataResourcePath that identifies the collection of entities or properties to read.encodedQuery - Optional: The encoded HTTP query, if any.protocol - The OData protocol to use.public ODataRequestRead(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nonnull StructuredQuery query)
ODataRequestRead(String, ODataResourcePath, String, ODataProtocol).servicePath - The OData service path.entityPath - The ODataResourcePath that identifies the collection of entities or properties to read.query - The structured query.@Nonnull public URI getRelativeUri(@Nonnull UriEncodingStrategy strategy)
ODataRequestGenericgetRelativeUri in class ODataRequestGenericstrategy - URI encoding strategy.@Nonnull public String getRequestQuery()
ODataRequestGenericgetRequestQuery in class ODataRequestGeneric@Nonnull public ODataRequestResultGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient)
ODataRequestExecutablehttpClient - 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 © 2022 SAP SE. All rights reserved.