public class ODataUpdateRequestImpl extends Object implements ODataUpdateRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_HEADER |
static String |
AUTHORIZATION_HEADER |
static String |
CONTENT_TYPE
Content Type Constants
|
static String |
CONTENTTYPE_ATOM_XML |
| Constructor and Description |
|---|
ODataUpdateRequestImpl(String serviceName,
String entitySetName,
Map<String,Object> keys,
Map<String,Object> body,
ErrorResultHandler<?> errorHandler,
Map<String,String> headers,
Map<String,String> destinationRelevantHeaders,
boolean metadataCache,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
boolean isCacheRefresh) |
| Modifier and Type | Method and Description |
|---|---|
ODataUpdateResult |
execute(String destinationName)
Executes the OData PUT operation represented by this object.
|
ODataUpdateResult |
execute(UpdateMethod updateMethod,
org.apache.http.client.HttpClient providedClient)
Executes this Update request as PUT or PATCH operation
|
ODataUpdateResult |
execute(UpdateMethod updateMethod,
String destinationName)
Executes this Update request as a PUT or PATCH operation
|
ODataUpdateResult |
execute(UpdateMethod updateMethod,
com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName)
Executes this Update request as PUT or PATCH operation
|
ODataUpdateResult |
execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName)
Executes the OData PUT operation represented by this object.
|
String |
toString() |
public static final String AUTHORIZATION_HEADER
public static final String CONTENT_TYPE
public static final String ACCEPT_HEADER
public static final String CONTENTTYPE_ATOM_XML
public ODataUpdateRequestImpl(String serviceName, String entitySetName, Map<String,Object> keys, Map<String,Object> body, ErrorResultHandler<?> errorHandler, Map<String,String> headers, Map<String,String> destinationRelevantHeaders, boolean metadataCache, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, boolean isCacheRefresh)
public ODataUpdateResult execute(UpdateMethod updateMethod, String destinationName) throws ODataException
ODataUpdateRequestexecute in interface ODataUpdateRequestupdateMethod - An enum of type UpdateMethod, which determines whether the request is executed as a PUT or PATCH operationODataExceptionpublic ODataUpdateResult execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName) throws ODataException
ODataUpdateRequestexecute in interface ODataUpdateRequestODataExceptionpublic ODataUpdateResult execute(String destinationName) throws ODataException
ODataUpdateRequestexecute in interface ODataUpdateRequestODataExceptionpublic ODataUpdateResult execute(UpdateMethod updateMethod, com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName) throws ODataException
ODataUpdateRequestexecute in interface ODataUpdateRequestupdateMethod - An enum of type UpdateMethod, which determines whether the request is executed as a PUT or PATCH operationODataExceptionpublic ODataUpdateResult execute(UpdateMethod updateMethod, org.apache.http.client.HttpClient providedClient) throws ODataException
ODataUpdateRequestexecute in interface ODataUpdateRequestupdateMethod - An enum of type UpdateMethod, which determines whether the
request is executed as a PUT or PATCH operationprovidedClient - The HTTP Client instance that should be used for the HTTP
operationsODataExceptionCopyright © 2020 SAP. All Rights Reserved.