Class CapturingInterceptor
- java.lang.Object
-
- ca.uhn.fhir.rest.client.interceptor.CapturingInterceptor
-
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IClientInterceptor
public class CapturingInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
Client interceptor which simply captures request and response objects and stores them so that they can be inspected after a client call has returned
-
-
Constructor Summary
Constructors Constructor Description CapturingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the last request and response valuesca.uhn.fhir.rest.client.api.IHttpRequestgetLastRequest()ca.uhn.fhir.rest.client.api.IHttpResponsegetLastResponse()voidinterceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)voidinterceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
-
-
-
Constructor Detail
-
CapturingInterceptor
public CapturingInterceptor()
-
-
Method Detail
-
clear
public void clear()
Clear the last request and response values
-
getLastRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest getLastRequest()
-
getLastResponse
public ca.uhn.fhir.rest.client.api.IHttpResponse getLastResponse()
-
interceptRequest
public void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)
- Specified by:
interceptRequestin interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
interceptResponse
public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
- Specified by:
interceptResponsein interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
-