public class CapturingInterceptor extends Object implements IClientInterceptor
| Constructor and Description |
|---|
CapturingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the last request and response values
|
org.apache.http.client.methods.HttpRequestBase |
getLastRequest() |
org.apache.http.HttpResponse |
getLastResponse() |
void |
interceptRequest(org.apache.http.client.methods.HttpRequestBase theRequest)
Fired by the client just before invoking the HTTP client request
|
void |
interceptResponse(org.apache.http.HttpResponse theRequest)
Fired by the client upon receiving an HTTP response, prior to processing that response
|
public CapturingInterceptor()
public void clear()
public org.apache.http.client.methods.HttpRequestBase getLastRequest()
public org.apache.http.HttpResponse getLastResponse()
public void interceptRequest(org.apache.http.client.methods.HttpRequestBase theRequest)
IClientInterceptorinterceptRequest in interface IClientInterceptorpublic void interceptResponse(org.apache.http.HttpResponse theRequest)
IClientInterceptorinterceptResponse in interface IClientInterceptorCopyright © 2014–2016 University Health Network. All rights reserved.