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 Summary
ConstructorDescriptionCaptureResourceSourceFromHeaderInterceptor
(ca.uhn.fhir.context.FhirContext theFhirContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
extractSource
(RequestDetails theRequestDetails) Provides the header name to examine in incoming requests.void
setHeaderName
(String theHeaderName) Provides the header name to examine in incoming requests.
-
Constructor Details
-
CaptureResourceSourceFromHeaderInterceptor
-
-
Method Details
-
getHeaderName
Provides the header name to examine in incoming requests. Default is"X-Request-Source"
. -
setHeaderName
Provides the header name to examine in incoming requests. Default is"X-Request-Source"
. -
extractSource
-