Package com.gooddata.sdk.service
Class DeprecationWarningRequestInterceptor
java.lang.Object
com.gooddata.sdk.service.DeprecationWarningRequestInterceptor
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class DeprecationWarningRequestInterceptor
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Intercepts the request-response to check for X-GDC-DEPRECATED header and log it's content.
-
Constructor Summary
Constructors Constructor Description DeprecationWarningRequestInterceptor() -
Method Summary
Modifier and Type Method Description org.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
Constructor Details
-
DeprecationWarningRequestInterceptor
public DeprecationWarningRequestInterceptor()
-
-
Method Details
-
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws java.io.IOException- Specified by:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
java.io.IOException
-