Class LoggingClientHttpRequestInterceptor
- java.lang.Object
-
- org.hawaiiframework.logging.http.client.LoggingClientHttpRequestInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class LoggingClientHttpRequestInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
A logging client http request interceptor.This logs the input and output of each call.
- Since:
- 2.0.0
- Author:
- Rutger Lubbers
-
-
Constructor Summary
Constructors Constructor Description LoggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.client.ClientHttpResponse
intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
-
-
Constructor Detail
-
LoggingClientHttpRequestInterceptor
public LoggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
The constructor.
-
-
Method Detail
-
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:
intercept
in interfaceorg.springframework.http.client.ClientHttpRequestInterceptor
- Throws:
IOException
-
-