Class LazyTraceClientHttpRequestInterceptor
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.client.LazyTraceClientHttpRequestInterceptor
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class LazyTraceClientHttpRequestInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Lazy trace representation of
ClientHttpRequestInterceptor.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak
-
Constructor Summary
ConstructorsConstructorDescriptionLazyTraceClientHttpRequestInterceptor(org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
Constructor Details
-
LazyTraceClientHttpRequestInterceptor
public LazyTraceClientHttpRequestInterceptor(org.springframework.beans.factory.BeanFactory beanFactory)
-
-
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
-