Package com.gooddata.sdk.service
Class RequestIdInterceptor
java.lang.Object
com.gooddata.sdk.service.RequestIdInterceptor
- All Implemented Interfaces:
org.apache.hc.core5.http.HttpRequestInterceptor
@Contract(threading=IMMUTABLE)
public class RequestIdInterceptor
extends Object
implements org.apache.hc.core5.http.HttpRequestInterceptor
Intercepts the client-side requests on low-level in order to be able to catch requests also from the Sardine,
that is working independently of Spring
RestTemplate to set
the X-GDC-REQUEST header to them.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context)
-
Constructor Details
-
RequestIdInterceptor
public RequestIdInterceptor()
-
-
Method Details
-
process
public void process(org.apache.hc.core5.http.HttpRequest request, 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.HttpRequestInterceptor- Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-