Class DefaultCarConnectionService

java.lang.Object
de.hybris.platform.sap.sapcarintegration.services.impl.DefaultCarConnectionService
All Implemented Interfaces:
CarConnectionService

public class DefaultCarConnectionService extends Object implements CarConnectionService
Default concrete implementation to provide business logic for CarConnectionService
  • 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

      public CarConfigurationService getCarConfigurationService()
    • setCarConfigurationService

      public void setCarConfigurationService(CarConfigurationService carConfigurationService)
    • getProxyhost

      public String getProxyhost()
    • setProxyhost

      public void setProxyhost(String proxyhost)
    • getProxyport

      public Integer getProxyport()
    • setProxyport

      public void setProxyport(Integer proxyport)
    • createConnection

      public HttpURLConnection createConnection(String absoluteUri, String contentType, String httpMethod) throws IOException, MalformedURLException
      Specified by:
      createConnection in interface CarConnectionService
      Parameters:
      absoluteUri - Absolute target URI for CAR
      contentType - Content Type expected to be received
      httpMethod - HTTP Method to be used (PUT/POST/GET etc...)
      Returns:
      HTTP Connection established
      Throws:
      IOException - Exception thrown if an exception occurs when opening the connection
      MalformedURLException - Thrown if an unknown or unspecified protocol is provided
    • getLanguage

      protected String getLanguage()