@Beta public class ODataRequestUpdate extends ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath| Constructor and Description |
|---|
ODataRequestUpdate(String servicePath,
ODataResourcePath entityPath,
org.apache.http.HttpEntity httpEntity,
UpdateStrategy updateStrategy,
String versionIdentifier,
ODataProtocol protocol)
Default constructor for OData Update requests.
|
ODataRequestUpdate(String servicePath,
ODataResourcePath entityPath,
String serializedEntity,
UpdateStrategy updateStrategy,
String versionIdentifier,
ODataProtocol protocol)
Default constructor for OData Update requests.
|
ODataRequestUpdate(String servicePath,
String entityName,
ODataEntityKey entityKey,
String serializedEntity,
UpdateStrategy updateStrategy,
String versionIdentifier,
ODataProtocol protocol)
Convenience constructor for OData update 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.
|
URI |
getRelativeUri(UriEncodingStrategy strategy)
Get the static request URI of the OData resource.
|
String |
getSerializedEntity()
Get the String representation of the update payload.
|
UpdateStrategy |
getUpdateStrategy()
The
UpdateStrategy determines if the entity will be changed or replaced. |
String |
getVersionIdentifier() |
int |
hashCode() |
void |
setUpdateStrategy(UpdateStrategy updateStrategy)
The
UpdateStrategy determines if the entity will be changed or replaced. |
addHeader, addHeaderIfAbsent, addListener, addQueryParameter, getHeaders, getListeners, getProtocol, getQueryParameters, getRelativeUri, getRequestQuery, getResourcePath, getServicePath, setCsrfTokenRetriever, tryExecute, tryExecuteWithCsrfTokenpublic ODataRequestUpdate(@Nonnull String servicePath, @Nonnull String entityName, @Nonnull ODataEntityKey entityKey, @Nonnull String serializedEntity, @Nonnull UpdateStrategy updateStrategy, @Nullable String versionIdentifier, @Nonnull ODataProtocol protocol)
ODataRequestUpdate(String, ODataResourcePath, String, UpdateStrategy, String, ODataProtocol).servicePath - The OData service path.entityName - The OData entity name.entityKey - The OData entity key.serializedEntity - The serialized OData entity.updateStrategy - The update strategy.versionIdentifier - The entity version identifier.protocol - The OData protocol to use.public ODataRequestUpdate(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nonnull String serializedEntity, @Nonnull UpdateStrategy updateStrategy, @Nullable String versionIdentifier, @Nonnull ODataProtocol protocol)
servicePath - The OData service path.entityPath - The ODataResourcePath that identifies the entity to update.serializedEntity - The serialized OData entity.updateStrategy - The update strategy.versionIdentifier - The entity version identifier.protocol - The OData protocol to use.public ODataRequestUpdate(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nonnull org.apache.http.HttpEntity httpEntity, @Nonnull UpdateStrategy updateStrategy, @Nullable String versionIdentifier, @Nonnull ODataProtocol protocol)
servicePath - The OData service path.entityPath - The ODataResourcePath that identifies the entity to update.httpEntity - The Http entity.updateStrategy - The update strategy.versionIdentifier - The entity version identifier.protocol - The OData protocol to use.@Nonnull public URI getRelativeUri(@Nonnull UriEncodingStrategy strategy)
ODataRequestGenericgetRelativeUri in class ODataRequestGenericstrategy - URI encoding strategy.@Nonnull public ODataRequestResultGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient)
ODataRequestExecutablehttpClient - The HttpClient.@Nonnull public String getSerializedEntity()
@Nonnull public UpdateStrategy getUpdateStrategy()
UpdateStrategy determines if the entity will be changed or replaced.public boolean equals(@Nullable Object o)
equals in class ODataRequestGenericprotected boolean canEqual(@Nullable Object other)
canEqual in class ODataRequestGenericpublic int hashCode()
hashCode in class ODataRequestGenericpublic void setUpdateStrategy(@Nonnull UpdateStrategy updateStrategy)
UpdateStrategy determines if the entity will be changed or replaced.Copyright © 2022 SAP SE. All rights reserved.