public class ODataDeleteRequestBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
ODataDeleteRequest |
build()
Builds an ODataDeleteRequest from this builder.
|
ODataDeleteRequestBuilder |
enableMetadataCache()
Enables caching of the metadata of an OData V2 data source.
|
ODataDeleteRequestBuilder |
enableMetadataCache(com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey)
Enables caching of the metadata of an OData V2 data source.
|
ODataDeleteRequestBuilder |
withCacheRefresh()
Replaces the existing metadata in the cache with the latest version from the OData V2 data source.
|
static ODataDeleteRequestBuilder |
withEntity(String serviceName,
String entitySetName,
Map<String,Object> keys)
Creates an ODataDeleteRequestBuilder with the given service and entity name.
|
ODataDeleteRequestBuilder |
withErrorHandler(ErrorResultHandler<?> errorHandler)
Sets an error handler to this ODataDeleteRequestBuilder.
|
ODataDeleteRequestBuilder |
withHeader(String key,
String value) |
ODataDeleteRequestBuilder |
withHeader(String key,
String value,
boolean passInAllRequests)
Adds a header to the delete request and optionally to the metadata request as
well depending on the value of the passInAllRequests parameter.
|
ODataDeleteRequestBuilder |
withMetadata(URL metadataFilePath)
Gets the metadata from the specified path.
|
public ODataDeleteRequestBuilder withErrorHandler(ErrorResultHandler<?> errorHandler)
errorHandler - public ODataDeleteRequestBuilder enableMetadataCache()
public ODataDeleteRequestBuilder enableMetadataCache(com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey)
key - Cache key containing the ID of the tenant where the application runs. You can also include the user name in the cache key.public ODataDeleteRequestBuilder withCacheRefresh()
public ODataDeleteRequestBuilder withMetadata(URL metadataFilePath)
metadataFilePath - URL pointing to the metadata informationpublic static ODataDeleteRequestBuilder withEntity(String serviceName, String entitySetName, Map<String,Object> keys)
serviceName - name of the odata service where the developer wants to execute a
delete operation.entitySetName - name of the entity set, on which the developer wants to execute a
delete operationkeys - keys identifying a particular entitypublic ODataDeleteRequestBuilder withHeader(String key, String value)
public ODataDeleteRequestBuilder withHeader(String key, String value, boolean passInAllRequests)
key - name of the headervalue - value of the headerpassInAllRequests - boolean indicating whether the header is to be passed in all the
requests to the backend like $metadata call, CSRF Token fetch etc. made as part of the Delete Request callpublic ODataDeleteRequest build()
Copyright © 2020 SAP. All Rights Reserved.