Class MllpTransactionComponent<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<MllpTransactionEndpointConfiguration,AuditDatasetType>
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpTransactionComponent<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
,AuditableComponent<AuditDatasetType>
,InterceptableComponent
,Hl7v2ConfigurationHolder<AuditDatasetType>
- Direct Known Subclasses:
CustomMllpComponent
,Iti10Component
,Iti21Component
,Iti22Component
,Iti30Component
,Iti31Component
,Iti64Component
,Iti8Component
,Iti9Component
public abstract class MllpTransactionComponent<AuditDatasetType extends MllpAuditDataset> extends MllpComponent<MllpTransactionEndpointConfiguration,AuditDatasetType> implements AuditableComponent<AuditDatasetType>
Camel component for MLLP-based eHealth transactions (like IHE PIX, PDQ, XAD-PID, etc.).- Author:
- Dmytro Rud
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent
ACK_TYPE_CODE_HEADER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MllpTransactionComponent(org.apache.camel.CamelContext camelContext, Hl7v2InteractionId<AuditDatasetType> interactionId)
protected
MllpTransactionComponent(Hl7v2InteractionId<AuditDatasetType> interactionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MllpTransactionEndpointConfiguration
createConfig(String uri, Map<String,Object> parameters)
Creates a configuration object.protected MllpEndpoint<?,?,?>
createEndpoint(org.apache.camel.component.mina.MinaEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config)
Creates an endpoint object.AuditStrategy<AuditDatasetType>
getClientAuditStrategy()
Returns client-side audit strategy instance.Hl7v2InteractionId<AuditDatasetType>
getInteractionId()
AuditStrategy<AuditDatasetType>
getServerAuditStrategy()
Returns server-side audit strategy instance.-
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, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, useRawUri
-
Methods inherited from interface org.openehealth.ipf.platform.camel.ihe.hl7v2.Hl7v2ConfigurationHolder
getHl7v2TransactionConfiguration, getNakFactory
-
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
-
-
-
-
Constructor Detail
-
MllpTransactionComponent
protected MllpTransactionComponent(Hl7v2InteractionId<AuditDatasetType> interactionId)
-
MllpTransactionComponent
protected MllpTransactionComponent(org.apache.camel.CamelContext camelContext, Hl7v2InteractionId<AuditDatasetType> interactionId)
-
-
Method Detail
-
createConfig
protected MllpTransactionEndpointConfiguration createConfig(String uri, Map<String,Object> parameters) throws Exception
Description copied from class:MllpComponent
Creates a configuration object.- Specified by:
createConfig
in classMllpComponent<MllpTransactionEndpointConfiguration,AuditDatasetType extends 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, MllpTransactionEndpointConfiguration config)
Description copied from class:MllpComponent
Creates an endpoint object.- Specified by:
createEndpoint
in classMllpComponent<MllpTransactionEndpointConfiguration,AuditDatasetType extends MllpAuditDataset>
- Parameters:
wrappedEndpoint
- standard Camel MINA endpoint instance.config
- endpoint configuration.- Returns:
- configured MLLP endpoint instance which wraps the MINA one.
-
getClientAuditStrategy
public AuditStrategy<AuditDatasetType> getClientAuditStrategy()
Description copied from interface:AuditableComponent
Returns client-side audit strategy instance.- Specified by:
getClientAuditStrategy
in interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>
- Returns:
- client-side audit strategy instance
-
getServerAuditStrategy
public AuditStrategy<AuditDatasetType> getServerAuditStrategy()
Description copied from interface:AuditableComponent
Returns server-side audit strategy instance.- Specified by:
getServerAuditStrategy
in interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>
- Returns:
- server-side audit strategy instance
-
getInteractionId
public Hl7v2InteractionId<AuditDatasetType> getInteractionId()
- Specified by:
getInteractionId
in interfaceHl7v2ConfigurationHolder<AuditDatasetType extends MllpAuditDataset>
-
-