Class ODataRequestDelete
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestDelete
- All Implemented Interfaces:
ODataRequestExecutable
The executable OData delete request.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
csrfTokenRetriever, resourcePath, servicePath
-
Constructor Summary
ConstructorDescriptionODataRequestDelete
(String servicePath, ODataResourcePath entityPath, String versionIdentifier, ODataProtocol protocol) Default constructor for OData delete requests.ODataRequestDelete
(String servicePath, String entityName, ODataEntityKey entityKey, String versionIdentifier, ODataProtocol protocol) Convenience constructor for OData delete requests on entity collections directly. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
execute
(org.apache.http.client.HttpClient httpClient) Execute the OData request with the provided HttpClient reference.getRelativeUri
(UriEncodingStrategy strategy) Get the static request URI of the OData resource.int
hashCode()
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
addHeader, addHeaderIfAbsent, addListener, addQueryParameter, getHeaders, getListeners, getProtocol, getQueryParameters, getRelativeUri, getRequestQuery, getResourcePath, getServicePath, setCsrfTokenRetriever, setHeader, setHeader, tryExecute, tryExecuteWithCsrfToken
-
Constructor Details
-
ODataRequestDelete
public ODataRequestDelete(@Nonnull String servicePath, @Nonnull String entityName, @Nonnull ODataEntityKey entityKey, @Nullable String versionIdentifier, @Nonnull ODataProtocol protocol) Convenience constructor for OData delete requests on entity collections directly. For operations on nested entities useODataRequestDelete(String, String, ODataEntityKey, String, ODataProtocol)
.- Parameters:
servicePath
- The OData service path.entityName
- The name of the entity to delete.entityKey
- Theentity key
that identifies the entity to delete.versionIdentifier
- The version identifier.protocol
- The OData protocol to use.
-
ODataRequestDelete
public ODataRequestDelete(@Nonnull String servicePath, @Nonnull ODataResourcePath entityPath, @Nullable String versionIdentifier, @Nonnull ODataProtocol protocol) Default constructor for OData delete requests.- Parameters:
servicePath
- The OData service path.entityPath
- TheODataResourcePath
that identifies the entity to delete.versionIdentifier
- The version identifier.protocol
- The OData protocol to use.
-
-
Method Details
-
getRelativeUri
Description copied from class:ODataRequestGeneric
Get the static request URI of the OData resource.- Specified by:
getRelativeUri
in classODataRequestGeneric
- Parameters:
strategy
- URI encoding strategy.- Returns:
- The String representation of the request URI.
-
execute
@Nonnull public ODataRequestResultGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient) Description copied from interface:ODataRequestExecutable
Execute the OData request with the provided HttpClient reference.- Parameters:
httpClient
- The HttpClient.- Returns:
- An OData request result.
-
getVersionIdentifier
-
equals
- Overrides:
equals
in classODataRequestGeneric
-
canEqual
- Overrides:
canEqual
in classODataRequestGeneric
-
hashCode
public int hashCode()- Overrides:
hashCode
in classODataRequestGeneric
-