Class UserInfoInterceptor
- java.lang.Object
-
- ca.uhn.fhir.rest.client.interceptor.UserInfoInterceptor
-
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IClientInterceptor
public class UserInfoInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
HTTP interceptor to be used for adding HTTP headers containing user identifying info for auditing purposes to the request
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADER_APPLICATION_NAMEstatic StringHEADER_USER_IDstatic StringHEADER_USER_NAME
-
Constructor Summary
Constructors Constructor Description UserInfoInterceptor(String theUserId, String theUserName, String theAppName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)voidinterceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
-
-
-
Field Detail
-
HEADER_USER_ID
public static final String HEADER_USER_ID
- See Also:
- Constant Field Values
-
HEADER_USER_NAME
public static final String HEADER_USER_NAME
- See Also:
- Constant Field Values
-
HEADER_APPLICATION_NAME
public static final String HEADER_APPLICATION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserInfoInterceptor
public UserInfoInterceptor(String theUserId, String theUserName, String theAppName)
-
-
Method Detail
-
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) throws IOException
- Specified by:
interceptResponsein interfaceca.uhn.fhir.rest.client.api.IClientInterceptor- Throws:
IOException
-
-