JavaScript is disabled on your browser.
java.lang.Object
org.apache.logging.log4j.audit.rest.RequestContextHeaderInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class RequestContextHeaderInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Creates a List of Headers containing the keys and values in the RequestContext that have a mapping indicating
they should be propogated to the service being called.
This class is designed to be used by Spring as part of the REST Template configuration when calling a REST service.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
org.springframework.http.client.ClientHttpResponse
intercept (org.springframework.http.HttpRequest httpRequest,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Detail
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest httpRequest,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution)
throws IOException
Specified by:
intercept
in interface org.springframework.http.client.ClientHttpRequestInterceptor
Throws:
IOException
Copyright © 2016-2018 Apache Software Foundation . All Rights Reserved. Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.