Class HelixHttpLoggingInterceptor
java.lang.Object
com.helixframework.resttemplate.logging.HelixHttpLoggingInterceptor
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class HelixHttpLoggingInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
RestTemplate interceptor that logs the http request and response in a standardized format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofHelixHttpLoggingInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Gets a builder forHelixHttpLoggingInterceptor.org.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
Method Details
-
builder
Gets a builder forHelixHttpLoggingInterceptor.- Returns:
- a
HelixHttpLoggingInterceptor.Builder
-
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
-