public class DefaultFSIntegrationService extends java.lang.Object implements FSIntegrationService
| Constructor and Description |
|---|
DefaultFSIntegrationService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.URI |
createAndValidateUriFromString(java.lang.String endpointUrl) |
protected <any> |
createXmlHttpMessageConverter() |
protected java.lang.String |
encodeCredentials(java.lang.String clientId,
java.lang.String clientSecret) |
protected java.lang.Object |
executeOAuthPOST(java.lang.Object integrationObject,
java.util.Map<java.lang.String,java.lang.String> externalConfig,
java.lang.Object response) |
java.lang.Object |
executePOST(java.lang.Object integrationObject,
java.util.Map<java.lang.String,java.lang.String> externalConfig,
java.lang.Object response,
java.lang.String endPointConfigurationKey)
Execute POST request.
|
protected ConfigurationService |
getConfigurationService() |
protected HttpHeaders |
getCsrfHeaders(java.lang.String endpointUrl,
java.lang.String oauthToken) |
protected <any> |
getHeaderConfig(java.lang.String endpointUrl,
java.util.Map<java.lang.String,java.lang.String> oauthConfig) |
java.lang.String |
getOAuthToken(java.util.Map<java.lang.String,java.lang.String> oauthConfigParams)
Get OAuth token.
|
protected void |
logError(HttpClientErrorException e,
java.lang.String endpointUrl) |
void |
setConfigurationService(ConfigurationService configurationService) |
public java.lang.Object executePOST(java.lang.Object integrationObject,
java.util.Map<java.lang.String,java.lang.String> externalConfig,
java.lang.Object response,
java.lang.String endPointConfigurationKey)
FSIntegrationServiceexecutePOST in interface FSIntegrationServiceintegrationObject - the integration object which represents request bodyexternalConfig - the external config which represents request headerresponse - the responseendPointConfigurationKey - the endpoint urlpublic java.lang.String getOAuthToken(java.util.Map<java.lang.String,java.lang.String> oauthConfigParams)
FSIntegrationServicegetOAuthToken in interface FSIntegrationServiceoauthConfigParams - the oauth config paramsprotected HttpHeaders getCsrfHeaders(java.lang.String endpointUrl,
java.lang.String oauthToken)
protected java.lang.Object executeOAuthPOST(java.lang.Object integrationObject,
java.util.Map<java.lang.String,java.lang.String> externalConfig,
java.lang.Object response)
protected java.lang.String encodeCredentials(java.lang.String clientId,
java.lang.String clientSecret)
protected <any> getHeaderConfig(java.lang.String endpointUrl,
java.util.Map<java.lang.String,java.lang.String> oauthConfig)
protected <any> createXmlHttpMessageConverter()
protected java.net.URI createAndValidateUriFromString(java.lang.String endpointUrl)
protected void logError(HttpClientErrorException e,
java.lang.String endpointUrl)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.