@Beta public class ODataRequestAction extends ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath| Constructor and Description |
|---|
ODataRequestAction(String servicePath,
ODataResourcePath actionPath,
String actionParameters,
ODataProtocol protocol)
Default constructor for OData Action request.
|
ODataRequestAction(String servicePath,
ODataResourcePath actionPath,
String actionParameters,
String encodedQuery,
ODataProtocol protocol)
Constructor with StructuredQuery for OData Function request.
|
ODataRequestAction(String servicePath,
String actionName,
String actionParameters,
ODataProtocol protocol)
Convenience constructor for invocations of unbound actions.
|
| 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 |
getActionParameters() |
String |
getQuery() |
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 ODataRequestAction(@Nonnull String servicePath, @Nonnull String actionName, @Nullable String actionParameters, @Nonnull ODataProtocol protocol)
ODataRequestAction(String, ODataResourcePath, String, ODataProtocol).servicePath - The OData service path.actionName - The action name.actionParameters - Optional: The action parameters HTTP payload.protocol - The OData protocol to use.public ODataRequestAction(@Nonnull String servicePath, @Nonnull ODataResourcePath actionPath, @Nullable String actionParameters, @Nonnull ODataProtocol protocol)
servicePath - The OData service path.actionPath - The path identifying the action. In case of an unbound
action this is simply the action name. If this is a bound action the path must also
contain the full path to the action.actionParameters - Optional: The action parameters as HTTP payload. This is expected to be a JSON formatted String.protocol - The OData protocol to use.public ODataRequestAction(@Nonnull String servicePath, @Nonnull ODataResourcePath actionPath, @Nullable String actionParameters, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
servicePath - The OData service path.actionPath - The full ODataResourcePath containing the action name, its parameters and possible further
path segments. If this is a bound action the path must also contain the full path to
the action.actionParameters - Optional: The action parameters as HTTP payload. This is expected to be a JSON formatted String.encodedQuery - Optional: An encodedQuery HTTP request query.protocol - The OData protocol to use.@Nonnull public URI getRelativeUri()
ODataRequestGenericgetRelativeUri in class ODataRequestGeneric@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 © 2021 SAP SE. All rights reserved.