Class DefaultCarConnectionService
- java.lang.Object
-
- de.hybris.platform.sap.sapcarintegration.services.impl.DefaultCarConnectionService
-
- All Implemented Interfaces:
CarConnectionService
public class DefaultCarConnectionService extends java.lang.Object implements CarConnectionService
Default concrete implementation to provide business logic forCarConnectionService
-
-
Constructor Summary
Constructors Constructor Description DefaultCarConnectionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.HttpURLConnectioncreateConnection(java.lang.String absoluteUri, java.lang.String contentType, java.lang.String httpMethod)CarConfigurationServicegetCarConfigurationService()de.hybris.platform.servicelayer.i18n.CommonI18NServicegetCommonI18NService()protected java.lang.StringgetLanguage()java.lang.StringgetProxyhost()java.lang.IntegergetProxyport()voidsetCarConfigurationService(CarConfigurationService carConfigurationService)voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)voidsetProxyhost(java.lang.String proxyhost)voidsetProxyport(java.lang.Integer proxyport)
-
-
-
Method Detail
-
getCommonI18NService
public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
-
getCarConfigurationService
public CarConfigurationService getCarConfigurationService()
-
setCarConfigurationService
public void setCarConfigurationService(CarConfigurationService carConfigurationService)
-
getProxyhost
public java.lang.String getProxyhost()
-
setProxyhost
public void setProxyhost(java.lang.String proxyhost)
-
getProxyport
public java.lang.Integer getProxyport()
-
setProxyport
public void setProxyport(java.lang.Integer proxyport)
-
createConnection
public java.net.HttpURLConnection createConnection(java.lang.String absoluteUri, java.lang.String contentType, java.lang.String httpMethod) throws java.io.IOException, java.net.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:
java.io.IOException- Exception thrown if an exception occurs when opening the connectionjava.net.MalformedURLException- Thrown if an unknown or unspecified protocol is provided
-
getLanguage
protected java.lang.String getLanguage()
-
-