Package ca.uhn.fhir.rest.server.interceptor
package ca.uhn.fhir.rest.server.interceptor
-
ClassDescriptionThis interceptor causes the server to reject invocations for HTTP methods other than those supported by the server with an HTTP 405.This interceptor intercepts each incoming request and if it contains a FHIR resource, validates that resource.This interceptor examines a header on the incoming request and places it in
Resource.meta.source
(R4 and above) or in an extension onResource.meta
with the URLhttp://hapifhir.io/fhir/StructureDefinition/resource-meta-source
(DSTU3).Request object forinvalid reference
ca.uhn.fhir.interceptor.api.Pointcut#STORAGE_CONDITIONAL_URL_PREPROCESS
Request object forinvalid reference
ca.uhn.fhir.interceptor.api.Pointcut#STORAGE_CONDITIONAL_URL_PREPROCESS
This interceptor looks for a URL parameter on requests called_fhirpath
and replaces the resource being returned with a Parameters resource containing the results of the given FHIRPath expression evaluated against the resource that would otherwise have been returned.This interceptor can be used to selectively block specific interactions/operations from the server's capabilities.Base class forIServerInterceptor
implementations.Provides methods to intercept requests and responses.Deprecated.Server interceptor which logs each request using a defined formatThis interceptor intercepts each incoming request and if it contains a FHIR resource, validates that resource.This interceptor detects when a request is coming from a browser, and automatically returns a response with syntax highlighted (coloured) HTML for the response instead of just returning raw XML/JSON.This interceptor captures and makes available the number of characters written (pre-compression if Gzip compression is being used) to the HTTP response stream for FHIR responses.Contains the results of the captureThis interceptor looks for coded data (This interceptor leverages ConceptMap resources stored in the repository to automatically map terminology from one CodeSystem to another at runtime, in resources that are being returned by the server.This interceptor intercepts each outgoing response and if it contains a FHIR resource, validates that resource.This interceptor allows a client to request that a Media resource be served as the raw contents of the resource, assuming either: The client explicitly requests the correct content type using the Accept header The client explicitly requests raw output by adding the parameter_output=data
NOP implementation ofIServerOperationInterceptor
This interceptor replaces the auto-generated CapabilityStatement that is generated by the HAPI FHIR Server with a static hard-coded resource.This interceptor creates verbose server log entries containing the complete request and response payloads.
Hook
annotation without needing to implement any interceptor