Class MllpComponent<ConfigType extends MllpEndpointConfiguration,​AuditDatasetType extends MllpAuditDataset>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ACK_TYPE_CODE_HEADER  
      • Fields inherited from class org.apache.camel.support.service.BaseService

        BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MllpComponent()  
      protected MllpComponent​(org.apache.camel.CamelContext camelContext)
      Camel context-based constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract ConfigType createConfig​(String uri, Map<String,​Object> parameters)
      Creates a configuration object.
      protected org.apache.camel.Endpoint createEndpoint​(String uri, String remaining, Map<String,​Object> parameters)
      Creates and configures the endpoint.
      protected abstract MllpEndpoint<?,​?,​?> createEndpoint​(org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, ConfigType config)
      Creates an endpoint object.
      List<Interceptor<?>> getAdditionalConsumerInterceptors()
      Returns a list of component-specific (i.e.
      List<Interceptor<?>> getAdditionalProducerInterceptors()
      Returns a list of component-specific (i.e.
      org.apache.camel.spi.PropertyConfigurer getEndpointPropertyConfigurer()  
      • Methods inherited from class org.apache.camel.component.mina.MinaComponent

        createEndpoint, getConfiguration, isUseGlobalSslContextParameters, setConfiguration, setUseGlobalSslContextParameters
      • Methods inherited from class org.apache.camel.support.DefaultComponent

        afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
      • Methods inherited from class org.apache.camel.support.service.BaseService

        build, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
      • Methods inherited from interface org.apache.camel.CamelContextAware

        getCamelContext, setCamelContext
      • Methods inherited from interface org.apache.camel.Component

        createEndpoint, createEndpoint, getComponentPropertyConfigurer, getExtension, getSupportedExtensions, useRawUri
      • Methods inherited from interface org.apache.camel.Service

        build, close, init, start, stop
      • Methods inherited from interface org.apache.camel.ShutdownableService

        shutdown
      • Methods inherited from interface org.apache.camel.SSLContextParametersAware

        retrieveGlobalSslContextParameters
      • Methods inherited from interface org.apache.camel.StatefulService

        getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
      • Methods inherited from interface org.apache.camel.SuspendableService

        isSuspended, resume, suspend
    • Constructor Detail

      • MllpComponent

        protected MllpComponent()
      • MllpComponent

        protected MllpComponent​(org.apache.camel.CamelContext camelContext)
        Camel context-based constructor.
        Parameters:
        camelContext - camel context
    • Method Detail

      • createConfig

        protected abstract ConfigType createConfig​(String uri,
                                                   Map<String,​Object> parameters)
                                            throws Exception
        Creates a configuration object.
        Parameters:
        uri - endpoint URI
        parameters - URL parameters.
        Returns:
        configuration object filled with values from the provided parameter map.
        Throws:
        Exception
      • createEndpoint

        protected abstract MllpEndpoint<?,​?,​?> createEndpoint​(org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint,
                                                                          ConfigType config)
        Creates an endpoint object.
        Parameters:
        wrappedEndpoint - standard Camel MINA endpoint instance.
        config - endpoint configuration.
        Returns:
        configured MLLP endpoint instance which wraps the MINA one.
      • createEndpoint

        protected org.apache.camel.Endpoint createEndpoint​(String uri,
                                                           String remaining,
                                                           Map<String,​Object> parameters)
                                                    throws Exception
        Creates and configures the endpoint.
        Overrides:
        createEndpoint in class org.apache.camel.component.mina.MinaComponent
        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
      • getEndpointPropertyConfigurer

        public org.apache.camel.spi.PropertyConfigurer getEndpointPropertyConfigurer()
        Specified by:
        getEndpointPropertyConfigurer in interface org.apache.camel.Component
        Overrides:
        getEndpointPropertyConfigurer in class org.apache.camel.support.DefaultComponent