public class LoggingRequestInterceptor
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
The logging request interceptor can be applied to a RestTemplate
and
will log the final request generated by all **previously** added interceptors.
Constructor and Description |
---|
LoggingRequestInterceptor() |
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 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