Class HeaderInjectionInterceptor

  • All Implemented Interfaces:
    ca.uhn.fhir.rest.client.api.IClientInterceptor

    public class HeaderInjectionInterceptor
    extends Object
    implements ca.uhn.fhir.rest.client.api.IClientInterceptor
    • Constructor Detail

      • HeaderInjectionInterceptor

        public HeaderInjectionInterceptor​(String headerKey,
                                          String headerValue)
        Instantiates a new header injection interception.
        Parameters:
        headerKey - the header key
        headerValue - the header value
      • HeaderInjectionInterceptor

        public HeaderInjectionInterceptor​(HashMap<String,​String> headers)
        Instantiates a new header injection interception.
        Parameters:
        headers - the headers
    • Method Detail

      • 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)
                               throws IOException
        Specified by:
        interceptResponse in interface ca.uhn.fhir.rest.client.api.IClientInterceptor
        Throws:
        IOException