public class RequestContextLoggingInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
ClientHttpRequestInterceptor to add a custom request identifier to the outgoing http request using a value from the MDC.| Constructor and Description |
|---|
RequestContextLoggingInterceptor(String requestHeaderId,
String logIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execute) |
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execute)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionCopyright © 2018 codeboje.de. All rights reserved.