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 Details

  • Method Details

    • interceptRequest

      public void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)
      Specified by:
      interceptRequest in interface ca.uhn.fhir.rest.client.api.IClientInterceptor
    • interceptResponse

      public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
      Specified by:
      interceptResponse in interface ca.uhn.fhir.rest.client.api.IClientInterceptor