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
ConstructorsConstructorDescriptionODataRequestDelete(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 booleanbooleanexecute(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.inthashCode()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 keythat 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- TheODataResourcePaththat identifies the entity to delete.versionIdentifier- The version identifier.protocol- The OData protocol to use.
-
-
Method Details
-
getRelativeUri
Description copied from class:ODataRequestGenericGet the static request URI of the OData resource.- Specified by:
getRelativeUriin 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:ODataRequestExecutableExecute the OData request with the provided HttpClient reference.- Parameters:
httpClient- The HttpClient.- Returns:
- An OData request result.
-
getVersionIdentifier
-
equals
- Overrides:
equalsin classODataRequestGeneric
-
canEqual
- Overrides:
canEqualin classODataRequestGeneric
-
hashCode
public int hashCode()- Overrides:
hashCodein classODataRequestGeneric
-