public class BatchRequestImpl<E> extends Object implements BatchRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR_PATH |
| Constructor and Description |
|---|
BatchRequestImpl(ErrorResultHandler<?> errorHandler,
Map<String,String> destinationRelevantHeaders,
Boolean cacheMetadata,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
Map<String,String> headers,
Boolean isCacheRefresh,
List batch,
String servicePath) |
BatchRequestImpl(List batch,
String servicePath) |
| Modifier and Type | Method and Description |
|---|---|
BatchResult |
execute(org.apache.http.client.HttpClient providedClient)
Executes all the operations in the batch request.
|
BatchResult |
execute(String destinationName)
Executes all the operations in the batch request.
|
BatchResult |
execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName)
Executes all the operations in the batch request.
|
BatchResult |
handleExecute(org.apache.http.client.HttpClient httpClient,
String destinationName) |
static String |
inputStreamToStringCRLFLineBreaks(InputStream in) |
public static final String SEPARATOR_PATH
public BatchRequestImpl(ErrorResultHandler<?> errorHandler, Map<String,String> destinationRelevantHeaders, Boolean cacheMetadata, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, Map<String,String> headers, Boolean isCacheRefresh, List batch, String servicePath)
public BatchResult handleExecute(org.apache.http.client.HttpClient httpClient, String destinationName) throws ODataException
ODataExceptionpublic BatchResult execute(String destinationName) throws ODataException
BatchRequestexecute in interface BatchRequestdestinationName - String representing the destination where the batch request will be executedODataException - If an error occurs during the execution of the batch requestpublic static String inputStreamToStringCRLFLineBreaks(InputStream in) throws ODataException
ODataExceptionpublic BatchResult execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName) throws ODataException
BatchRequestexecute in interface BatchRequestwithDestinationName - Object representing the destination where the batch request will be executedODataException - If an error occurs during the execution of the batch requestpublic BatchResult execute(org.apache.http.client.HttpClient providedClient) throws ODataException
BatchRequestexecute in interface BatchRequestprovidedClient - Custom HttpClient for connecting to the data sourceODataException - If an error occurs during the execution of the batch requestCopyright © 2020 SAP. All Rights Reserved.