Class FhirComponent<AuditDatasetType extends FhirAuditDataset>

    • Method Detail

      • connect

        public void connect​(FhirConsumer<AuditDatasetType> consumer,
                            FhirProvider resourceProvider)
        Connects the URL specified on the endpoint to the specified processor.
        Parameters:
        consumer - the consumer
        resourceProvider - the resource provider
      • initializeFhirContext

        public FhirContext initializeFhirContext()
        Initializes a default FHIR context for this component. ONly called if the endpoint does not define its own.
        Returns:
        initialized default FHIR context
      • isCompatibleContext

        public boolean isCompatibleContext​(FhirContext fhirContext)
      • createEndpoint

        protected org.apache.camel.Endpoint createEndpoint​(String uri,
                                                           String remaining,
                                                           Map<String,​Object> parameters)
                                                    throws Exception
        Specified by:
        createEndpoint in class org.apache.camel.support.DefaultComponent
        Throws:
        Exception
      • getAdditionalConsumerInterceptors

        public List<Interceptor<?>> getAdditionalConsumerInterceptors()
        Description copied from interface: InterceptableComponent
        Returns a list of component-specific (i.e. transaction-specific) interceptors which will be integrated into the interceptor chain of each consumer instance created by this component.

        Per default returns an empty list.
        When overwriting this method, please note:

        • Neither the returned list nor any element of it are allowed to be null.
        • Each invocation should return freshly created instances of interceptors (like prototype-scope beans in Spring), because interceptors cannot be reused by multiple endpoints.
        Specified by:
        getAdditionalConsumerInterceptors in interface InterceptableComponent
        Returns:
        a list of component-specific (i.e. transaction-specific) FHIR interceptors
      • getAdditionalProducerInterceptors

        public List<Interceptor<?>> getAdditionalProducerInterceptors()
        Description copied from interface: InterceptableComponent
        Returns a list of component-specific (i.e. transaction-specific) FHIR interceptors which will be integrated into the interceptor chain of each producer instance created by this component.

        Per default returns an empty list.
        When overwriting this method, please note:

        • Neither the returned list nor any element of it are allowed to be null.
        • Each invocation should return freshly created instances of interceptors (like prototype-scope beans in Spring), because interceptors cannot be reused by multiple endpoints.
        Specified by:
        getAdditionalProducerInterceptors in interface InterceptableComponent
        Returns:
        a list of component-specific (i.e. transaction-specific) FHIR interceptors
      • setFhirInteractionId

        public void setFhirInteractionId​(FhirInteractionId<AuditDatasetType> fhirInteractionId)
        Sets the FHIR interactionID.
        Parameters:
        fhirInteractionId - interactionID