public class LoggingClientHttpRequestInterceptor
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
This logs the input and output of each call.
Constructor and Description |
---|
LoggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
public LoggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws java.io.IOException
intercept
in interface org.springframework.http.client.ClientHttpRequestInterceptor
java.io.IOException