@Beta public class ODataRequestRead extends ODataRequestGeneric
servicePath| Constructor and Description |
|---|
ODataRequestRead(String servicePath,
String entityName,
String queryString,
ODataProtocol protocol)
Default constructor for OData Read request.
|
| 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 |
getEntityName() |
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, getServicePath, setCsrfTokenRetriever, tryExecute, tryExecuteWithCsrfTokenpublic ODataRequestRead(@Nonnull String servicePath, @Nonnull String entityName, @Nonnull String queryString, @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.entityName - The OData entity name.queryString - The HTTP query.protocol - The OData protocol to use.@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)
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 © 2020 SAP SE. All rights reserved.