public class ODataCreateRequestImpl extends Object implements ODataCreateRequest
| 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 |
|---|
ODataCreateRequestImpl(String serviceName,
String entitySetName,
Map<String,Object> body,
ErrorResultHandler<?> errorHandler,
Map<String,String> headers,
Map<String,String> destinationRelevantHeaders,
Boolean cacheMetadata,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
boolean isCacheRefresh) |
ODataCreateRequestImpl(String serviceName,
String entitySetName,
Map<String,Object> body,
String navigationProperty,
Map<String,Object> srcKeyMap,
ErrorResultHandler<?> errorHandler,
Map<String,String> headers,
Map<String,String> destinationRelevantHeaders,
Boolean cacheMetadata,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
Boolean isCacheRefresh) |
| Modifier and Type | Method and Description |
|---|---|
ODataCreateResult |
execute(org.apache.http.client.HttpClient providedClient)
Executes the OData Create request represented by this object.
|
ODataCreateResult |
execute(String destinationName)
Executes the OData Create request represented by this object.
|
ODataCreateResult |
execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName)
Executes the OData Create request represented by this object.
|
org.apache.olingo.odata2.api.edm.EdmNavigationProperty |
getNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet srcEtySet) |
ODataCreateResult |
getResponseFromLocation(String completeUrl,
String destinationName) |
org.apache.olingo.odata2.api.edm.EdmEntitySet |
getTargetEntitySet(org.apache.olingo.odata2.api.edm.Edm edm,
org.apache.olingo.odata2.api.edm.EdmEntitySet srcEtySet,
org.apache.olingo.odata2.api.edm.EdmNavigationProperty navigationProp) |
String |
handleNavigation(String completeUrl,
org.apache.olingo.odata2.api.edm.EdmEntityType entityType) |
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 ODataCreateRequestImpl(String serviceName, String entitySetName, Map<String,Object> body, String navigationProperty, Map<String,Object> srcKeyMap, ErrorResultHandler<?> errorHandler, Map<String,String> headers, Map<String,String> destinationRelevantHeaders, Boolean cacheMetadata, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, Boolean isCacheRefresh)
public ODataCreateRequestImpl(String serviceName, String entitySetName, Map<String,Object> body, ErrorResultHandler<?> errorHandler, Map<String,String> headers, Map<String,String> destinationRelevantHeaders, Boolean cacheMetadata, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, boolean isCacheRefresh)
public ODataCreateResult execute(String destinationName) throws ODataException
ODataCreateRequestexecute in interface ODataCreateRequestODataExceptionpublic ODataCreateResult getResponseFromLocation(String completeUrl, String destinationName) throws ODataException
ODataExceptionpublic org.apache.olingo.odata2.api.edm.EdmNavigationProperty getNavigationProperty(org.apache.olingo.odata2.api.edm.EdmEntitySet srcEtySet)
throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionpublic org.apache.olingo.odata2.api.edm.EdmEntitySet getTargetEntitySet(org.apache.olingo.odata2.api.edm.Edm edm,
org.apache.olingo.odata2.api.edm.EdmEntitySet srcEtySet,
org.apache.olingo.odata2.api.edm.EdmNavigationProperty navigationProp)
throws org.apache.olingo.odata2.api.edm.EdmException,
ODataException
org.apache.olingo.odata2.api.edm.EdmExceptionODataExceptionpublic String handleNavigation(String completeUrl, org.apache.olingo.odata2.api.edm.EdmEntityType entityType) throws org.apache.olingo.odata2.api.edm.EdmException, ODataException
org.apache.olingo.odata2.api.edm.EdmExceptionODataExceptionpublic ODataCreateResult execute(com.sap.cloud.sdk.cloudplatform.connectivity.WithDestinationName withDestinationName) throws ODataException
ODataCreateRequestexecute in interface ODataCreateRequestODataExceptionpublic ODataCreateResult execute(org.apache.http.client.HttpClient providedClient) throws ODataException
ODataCreateRequestexecute in interface ODataCreateRequestprovidedClient - custom HttpClient capable of connecting to the data sourceODataExceptionCopyright © 2020 SAP. All Rights Reserved.