public class UserInfoInterceptor extends Object implements IClientInterceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_APPLICATION_NAME |
static String |
HEADER_USER_ID |
static String |
HEADER_USER_NAME |
| Constructor and Description |
|---|
UserInfoInterceptor(String theUserId,
String theUserName,
String theAppName) |
| 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 static final String HEADER_USER_ID
public static final String HEADER_USER_NAME
public static final String HEADER_APPLICATION_NAME
public UserInfoInterceptor(String theUserId, String theUserName, String theAppName)
public void interceptRequest(org.apache.http.client.methods.HttpRequestBase theRequest)
IClientInterceptorinterceptRequest in interface IClientInterceptorpublic void interceptResponse(org.apache.http.HttpResponse theResponse) throws IOException
IClientInterceptorinterceptResponse in interface IClientInterceptorIOExceptionCopyright © 2014–2016 University Health Network. All rights reserved.