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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets not allowed headers.org.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) voidsetNotAllowedHeaders(List<String> notAllowedHeaders) Sets not allowed headers.
-
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-
getNotAllowedHeaders
Gets not allowed headers.- Returns:
- the not allowed headers
-
setNotAllowedHeaders
Sets not allowed headers.- Parameters:
notAllowedHeaders- the not allowed headers
-