Class MllpDispatchComponent
- 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<MllpDispatchEndpointConfiguration,MllpAuditDataset>
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpDispatchComponent
-
- 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
,InterceptableComponent
,Hl7v2ConfigurationHolder<MllpAuditDataset>
public class MllpDispatchComponent extends MllpComponent<MllpDispatchEndpointConfiguration,MllpAuditDataset>
MLLP dispatching Camel component.- Author:
- Dmytro Rud
-
-
Field Summary
Fields Modifier and Type Field Description static Hl7v2TransactionConfiguration<MllpAuditDataset>
CONFIGURATION
-
Fields inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent
ACK_TYPE_CODE_HEADER
-
-
Constructor Summary
Constructors Constructor Description MllpDispatchComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MllpDispatchEndpointConfiguration
createConfig(String uri, Map<String,Object> parameters)
Creates a configuration object.protected MllpEndpoint<?,?,?>
createEndpoint(org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, MllpDispatchEndpointConfiguration config)
Creates an endpoint object.Hl7v2TransactionConfiguration<MllpAuditDataset>
getHl7v2TransactionConfiguration()
Returns component configuration.Hl7v2InteractionId<MllpAuditDataset>
getInteractionId()
NakFactory<MllpAuditDataset>
getNakFactory()
Returns transaction-specific NAK factory.-
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent
createEndpoint, getAdditionalConsumerInterceptors, getAdditionalProducerInterceptors, 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 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, getExtension, getSupportedExtensions, useRawUri
-
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
-
-
-
-
Field Detail
-
CONFIGURATION
public static final Hl7v2TransactionConfiguration<MllpAuditDataset> CONFIGURATION
-
-
Method Detail
-
createConfig
protected MllpDispatchEndpointConfiguration createConfig(String uri, Map<String,Object> parameters) throws Exception
Description copied from class:MllpComponent
Creates a configuration object.- Specified by:
createConfig
in classMllpComponent<MllpDispatchEndpointConfiguration,MllpAuditDataset>
- Parameters:
uri
- endpoint URIparameters
- URL parameters.- Returns:
- configuration object filled with values from the provided parameter map.
- Throws:
Exception
-
createEndpoint
protected MllpEndpoint<?,?,?> createEndpoint(org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, MllpDispatchEndpointConfiguration config)
Description copied from class:MllpComponent
Creates an endpoint object.- Specified by:
createEndpoint
in classMllpComponent<MllpDispatchEndpointConfiguration,MllpAuditDataset>
- Parameters:
wrappedEndpoint
- standard Camel MINA endpoint instance.config
- endpoint configuration.- Returns:
- configured MLLP endpoint instance which wraps the MINA one.
-
getInteractionId
public Hl7v2InteractionId<MllpAuditDataset> getInteractionId()
-
getHl7v2TransactionConfiguration
public Hl7v2TransactionConfiguration<MllpAuditDataset> getHl7v2TransactionConfiguration()
Description copied from interface:Hl7v2ConfigurationHolder
Returns component configuration.
-
getNakFactory
public NakFactory<MllpAuditDataset> getNakFactory()
Description copied from interface:Hl7v2ConfigurationHolder
Returns transaction-specific NAK factory.
-
-