public class CookieInterceptor extends Object implements IClientInterceptor
This interceptor adds a header resembling the following:
Cookie: [key]=[value]
| Constructor and Description |
|---|
CookieInterceptor(String sessionCookie) |
| Modifier and Type | Method and Description |
|---|---|
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 theResponse)
Fired by the client upon receiving an HTTP response, prior to processing that response
|
public CookieInterceptor(String sessionCookie)
public void interceptRequest(org.apache.http.client.methods.HttpRequestBase theRequest)
IClientInterceptorinterceptRequest in interface IClientInterceptorpublic void interceptResponse(org.apache.http.HttpResponse theResponse)
IClientInterceptorinterceptResponse in interface IClientInterceptorCopyright © 2014–2016 University Health Network. All rights reserved.