Class CaptureResourceSourceFromHeaderInterceptor

java.lang.Object
ca.uhn.fhir.rest.server.interceptor.CaptureResourceSourceFromHeaderInterceptor

This interceptor examines a header on the incoming request and places it in Resource.meta.source (R4 and above) or in an extension on Resource.meta with the URL http://hapifhir.io/fhir/StructureDefinition/resource-meta-source (DSTU3).

This interceptor does not support versions of FHIR below DSTU3.

See Also:
  • Constructor Details

  • Method Details

    • getHeaderName

      Provides the header name to examine in incoming requests. Default is "X-Request-Source".
    • setHeaderName

      public void setHeaderName(String theHeaderName)
      Provides the header name to examine in incoming requests. Default is "X-Request-Source".
    • extractSource

      public void extractSource(RequestDetails theRequestDetails)