@Beta public abstract class ODataRequestGeneric extends Object implements ODataRequestExecutable
Modifier and Type | Field and Description |
---|---|
static ODataFormat |
DEFAULT_FORMAT
Default
ODataFormat that will be used if none is specified. |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String key,
String value)
Add a header to the OData HTTP request.
|
void |
addHeaderIfAbsent(String key,
String value)
Add a header to the OData HTTP request, if it is not included already.
|
void |
addListener(ODataRequestListener listener)
Attach a listener to the request process.
|
void |
addQueryParameter(String key,
String value)
Add a query parameter to the HTTP request.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
protected Map<String,String> |
getHeaders()
Map of HTTP header key-values which are added to the OData request.
|
protected List<ODataRequestListener> |
getListeners()
List of listeners to observe and react on OData actions.
|
ODataProtocol |
getProtocol()
The OData protocol version of this request.
|
protected Map<String,String> |
getQueryParameters()
Map of additional generic HTTP query parameters.
|
abstract 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() |
void |
setCsrfTokenRetriever(CsrfTokenRetriever csrfTokenRetriever) |
void |
setResponseFormat(ODataFormat responseFormat)
Set the response format of this request.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
execute
public static final ODataFormat DEFAULT_FORMAT
ODataFormat
that will be used if none is specified.@Nonnull public abstract URI getRelativeUri()
public void setResponseFormat(@Nullable ODataFormat responseFormat)
responseFormat
- The response format to use.public void addListener(@Nonnull ODataRequestListener listener)
listener
- The listener to react on OData request actions.public void addHeader(@Nonnull String key, @Nullable String value)
key
- The header name.value
- The header value.public void addHeaderIfAbsent(@Nonnull String key, @Nullable String value)
key
- The header name.value
- The header value.public void addQueryParameter(@Nonnull String key, @Nullable String value)
key
- The parameter key.value
- The parameter value.@Nonnull public String getRequestQuery()
public ODataProtocol getProtocol()
public void setCsrfTokenRetriever(@Nullable CsrfTokenRetriever csrfTokenRetriever)
protected List<ODataRequestListener> getListeners()
protected Map<String,String> getHeaders()
Copyright © 2020 SAP SE. All rights reserved.