Class MllpComponent<ConfigType extends MllpEndpointConfiguration,AuditDatasetType extends MllpAuditDataset>
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultComponent
-
- org.apache.camel.component.mina.MinaComponent
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent<ConfigType,AuditDatasetType>
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Component,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.SSLContextParametersAware,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,org.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent,Hl7v2ConfigurationHolder<AuditDatasetType>
- Direct Known Subclasses:
MllpDispatchComponent,MllpTransactionComponent
public abstract class MllpComponent<ConfigType extends MllpEndpointConfiguration,AuditDatasetType extends MllpAuditDataset> extends org.apache.camel.component.mina.MinaComponent implements org.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent, Hl7v2ConfigurationHolder<AuditDatasetType>
Generic Camel component for MLLP.- Author:
- Dmytro Rud
-
-
Field Summary
Fields Modifier and Type Field Description static StringACK_TYPE_CODE_HEADER
-
Constructor Summary
Constructors Modifier Constructor Description protectedMllpComponent()protectedMllpComponent(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 ConfigTypecreateConfig(String uri, Map<String,Object> parameters)Creates a configuration object.protected org.apache.camel.EndpointcreateEndpoint(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<org.openehealth.ipf.platform.camel.ihe.core.Interceptor<?>>getAdditionalConsumerInterceptors()List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor<?>>getAdditionalProducerInterceptors()org.apache.camel.spi.PropertyConfigurergetEndpointPropertyConfigurer()-
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, getDefaultName, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
-
Methods inherited from interface org.apache.camel.Component
createEndpoint, createEndpoint, getComponentPropertyConfigurer, getDefaultName, getExtension, getSupportedExtensions, isAutowiredEnabled, useRawUri
-
Methods inherited from interface org.openehealth.ipf.platform.camel.ihe.hl7v2.Hl7v2ConfigurationHolder
getHl7v2TransactionConfiguration, getInteractionId, getNakFactory
-
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
-
-
-
-
Field Detail
-
ACK_TYPE_CODE_HEADER
public static final String ACK_TYPE_CODE_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
createConfig
protected abstract ConfigType createConfig(String uri, Map<String,Object> parameters) throws Exception
Creates a configuration object.- Parameters:
uri- endpoint URIparameters- 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:
createEndpointin classorg.apache.camel.component.mina.MinaComponent- Throws:
Exception
-
getAdditionalConsumerInterceptors
public List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor<?>> getAdditionalConsumerInterceptors()
- Specified by:
getAdditionalConsumerInterceptorsin interfaceorg.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent
-
getAdditionalProducerInterceptors
public List<org.openehealth.ipf.platform.camel.ihe.core.Interceptor<?>> getAdditionalProducerInterceptors()
- Specified by:
getAdditionalProducerInterceptorsin interfaceorg.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent
-
getEndpointPropertyConfigurer
public org.apache.camel.spi.PropertyConfigurer getEndpointPropertyConfigurer()
- Specified by:
getEndpointPropertyConfigurerin interfaceorg.apache.camel.Component- Overrides:
getEndpointPropertyConfigurerin classorg.apache.camel.support.DefaultComponent
-
-