Class CookieInterceptor
- java.lang.Object
-
- ca.uhn.fhir.rest.client.interceptor.CookieInterceptor
-
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IClientInterceptor
public class CookieInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
HTTP interceptor to be used for adding Cookie to requests.This interceptor adds a header resembling the following:
Cookie: [key]=[value]
-
-
Constructor Summary
Constructors Constructor Description CookieInterceptor(String sessionCookie)
-
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)
-
-
-
Constructor Detail
-
CookieInterceptor
public CookieInterceptor(String sessionCookie)
-
-
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)
- Specified by:
interceptResponsein interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
-