@Beta public class ODataRequestFunction extends ODataRequestGeneric
resourcePath, servicePath
Constructor and Description |
---|
ODataRequestFunction(String servicePath,
ODataResourcePath functionPath,
ODataFunctionParameters parameters,
String query,
ODataProtocol protocol)
Convenience constructor for invocations of unbound functions.
|
ODataRequestFunction(String servicePath,
ODataResourcePath functionPath,
String encodedQuery,
ODataProtocol protocol)
Default constructor for OData Function request.
|
ODataRequestFunction(String servicePath,
String functionName,
ODataFunctionParameters parameters,
ODataProtocol protocol)
Convenience constructor for invocations of unbound functions.
|
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 |
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, tryExecuteWithCsrfToken
public ODataRequestFunction(@Nonnull String servicePath, @Nonnull String functionName, @Nonnull ODataFunctionParameters parameters, @Nonnull ODataProtocol protocol)
ODataRequestFunction(String, ODataResourcePath, String, ODataProtocol)
instead.servicePath
- The OData service path.functionName
- The name of the unbound OData function.parameters
- The parameters of the function invocation.protocol
- The OData protocol to use.public ODataRequestFunction(@Nonnull String servicePath, @Nonnull ODataResourcePath functionPath, @Nonnull ODataFunctionParameters parameters, @Nullable String query, @Nonnull ODataProtocol protocol)
ODataRequestFunction(String, ODataResourcePath, String, ODataProtocol)
instead.servicePath
- The OData service path.functionPath
- The full ODataResourcePath
containing the function name, its parameters and possible further
path segments. If this is a bound function the path must also contain the full path
to the function.parameters
- The parameters of the function invocation.query
- Optional: The encoded HTTP query, if any.protocol
- The OData protocol to use.public ODataRequestFunction(@Nonnull String servicePath, @Nonnull ODataResourcePath functionPath, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
servicePath
- The OData service path.functionPath
- The full ODataResourcePath
containing the function name, its parameters and possible further
path segments. If this is a bound function the path must also contain the full path
to the function.encodedQuery
- Optional: The encoded HTTP query, if any.protocol
- The OData protocol to use.@Nonnull public URI getRelativeUri()
getRelativeUri
in class ODataRequestGeneric
@Nonnull public ODataRequestResultGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient)
httpClient
- The HttpClient.@Nonnull public String getRequestQuery()
ODataRequestGeneric
getRequestQuery
in class ODataRequestGeneric
public boolean equals(@Nullable Object o)
equals
in class ODataRequestGeneric
protected boolean canEqual(@Nullable Object other)
canEqual
in class ODataRequestGeneric
public int hashCode()
hashCode
in class ODataRequestGeneric
Copyright © 2021 SAP SE. All rights reserved.