Class DefaultAbstractRestService

    • Constructor Detail

      • DefaultAbstractRestService

        public DefaultAbstractRestService()
    • Method Detail

      • beforeRestCall

        protected void beforeRestCall()
        Will be called before the REST call is made
      • initialize

        protected void initialize()
      • checkHttpStatusCode

        protected void checkHttpStatusCode​(org.springframework.web.client.HttpClientErrorException e)
        Checks HTTP Status Codes for back end down
        Parameters:
        e -
        Throws:
        BackendDownException - when status code for back end down is given
      • setBackendDown

        public void setBackendDown​(boolean backendDown)
        Set the Attribute for BackendDown in the Session
        Specified by:
        setBackendDown in interface OaaRestService
        Parameters:
        backendDown - the value to set in the session
      • setRestTemplate

        public void setRestTemplate​(org.springframework.web.client.RestTemplate restTemplate)
        Set the REST template
        Parameters:
        restTemplate - the restTemplate to set
      • setSessionService

        public void setSessionService​(de.hybris.platform.servicelayer.session.SessionService sessionService)
        Set the Session service
        Parameters:
        sessionService -
      • getRestTemplate

        public org.springframework.web.client.RestTemplate getRestTemplate()
        Get the REST template
        Returns:
        restTemplate
      • getRestServiceConfiguration

        public RestServiceConfiguration getRestServiceConfiguration()
        Get the REST service configuration
        Returns:
        restServiceConfiguration
      • getSessionService

        public de.hybris.platform.servicelayer.session.SessionService getSessionService()
        Get the Session service
        Returns:
        the sessionService