Class DefaultCarConnectionService
java.lang.Object
de.hybris.platform.sap.sapcarintegration.services.impl.DefaultCarConnectionService
- All Implemented Interfaces:
CarConnectionService
Default concrete implementation to provide business logic for
CarConnectionService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(String absoluteUri, String contentType, String httpMethod) de.hybris.platform.servicelayer.i18n.CommonI18NServiceprotected StringvoidsetCarConfigurationService(CarConfigurationService carConfigurationService) voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) voidsetProxyhost(String proxyhost) voidsetProxyport(Integer proxyport)
-
Constructor Details
-
DefaultCarConnectionService
public DefaultCarConnectionService()
-
-
Method Details
-
getCommonI18NService
public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService() -
setCommonI18NService
public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) -
getCarConfigurationService
-
setCarConfigurationService
-
getProxyhost
-
setProxyhost
-
getProxyport
-
setProxyport
-
createConnection
public HttpURLConnection createConnection(String absoluteUri, String contentType, String httpMethod) throws IOException, MalformedURLException - Specified by:
createConnectionin interfaceCarConnectionService- Parameters:
absoluteUri- Absolute target URI for CARcontentType- Content Type expected to be receivedhttpMethod- HTTP Method to be used (PUT/POST/GET etc...)- Returns:
- HTTP Connection established
- Throws:
IOException- Exception thrown if an exception occurs when opening the connectionMalformedURLException- Thrown if an unknown or unspecified protocol is provided
-
getLanguage
-