java.lang.Object
de.hybris.platform.unifieduibackofficeservices.interceptors.HeaderInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor

public class HeaderInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
This Interceptor add content type and auth header to each request to pros and remove the configured headers from each request
  • Constructor Details

    • HeaderInterceptor

      public HeaderInterceptor()
  • Method Details

    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException
    • getAuthUserName

      protected String getAuthUserName()
      This method returns the authUserName as configured
      Returns:
      authUserName
    • getAuthPassword

      protected String getAuthPassword()
      This method returns the authPassword as Configured
      Returns:
      authPassword
    • getNotAllowedHeaders

      protected List<String> getNotAllowedHeaders()
      Gets not allowed headers.
      Returns:
      the not allowed headers
    • setNotAllowedHeaders

      public void setNotAllowedHeaders(List<String> notAllowedHeaders)
      Sets not allowed headers.
      Parameters:
      notAllowedHeaders - the not allowed headers
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Parameters:
      configurationService - the configurationService to set