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
-
Constructor Summary
ConstructorDescriptionUserInfoInterceptor
(String theUserId, String theUserName, String theAppName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptRequest
(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest) void
interceptResponse
(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
-
Field Details
-
HEADER_USER_ID
- See Also:
-
HEADER_USER_NAME
- See Also:
-
HEADER_APPLICATION_NAME
- See Also:
-
-
Constructor Details
-
UserInfoInterceptor
-
-
Method Details
-
interceptRequest
- Specified by:
interceptRequest
in interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
interceptResponse
public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException - Specified by:
interceptResponse
in interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
- Throws:
IOException
-