Class HeaderInterceptor

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

public class HeaderInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
Interceptor to set the header values from configuration properties.
  • 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
    • 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