Package com.gooddata.sdk.service
Class ResponseMissingRequestIdInterceptor
java.lang.Object
com.gooddata.sdk.service.ResponseMissingRequestIdInterceptor
- All Implemented Interfaces:
org.apache.hc.core5.http.HttpResponseInterceptor
@Contract(threading=IMMUTABLE)
public class ResponseMissingRequestIdInterceptor
extends Object
implements org.apache.hc.core5.http.HttpResponseInterceptor
Intercepts responses to check if they have set the X-GDC-REQUEST header for easier debugging.
If not, it takes this header from the request sent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context)
-
Constructor Details
-
ResponseMissingRequestIdInterceptor
public ResponseMissingRequestIdInterceptor()
-
-
Method Details
-
process
public void process(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
processin interfaceorg.apache.hc.core5.http.HttpResponseInterceptor- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-