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.netty.NettyComponent
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,CamelContextAware,Component,Service,ShutdownableService,HasCamelContext,SSLContextParametersAware,StatefulService,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, DEFAULT_HL7_CORRELATION_BEAN_NAME, DEFAULT_HL7_DECODER_FACTORY_BEAN_NAME, DEFAULT_HL7_ENCODER_FACTORY_BEAN_NAMEFields 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
ConstructorsModifierConstructorDescriptionprotectedMllpTransactionComponent(CamelContext camelContext, Hl7v2InteractionId<AuditDatasetType> interactionId) protectedMllpTransactionComponent(Hl7v2InteractionId<AuditDatasetType> interactionId) -
Method Summary
Modifier and TypeMethodDescriptionprotected MllpTransactionEndpointConfigurationcreateConfig(String uri, Map<String, Object> parameters) Creates a configuration object.protected MllpEndpoint<?, ?, ?> createEndpoint(org.apache.camel.component.netty.NettyEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config) Creates an endpoint object.Returns client-side audit strategy instance.Returns server-side audit strategy instance.Methods inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent
createEndpoint, getEndpointPropertyConfigurer, parseConfigurationMethods inherited from class org.apache.camel.component.netty.NettyComponent
doStart, doStop, getConfiguration, getExecutorService, getMaximumPoolSize, isUseGlobalSslContextParameters, setConfiguration, setExecutorService, setMaximumPoolSize, setUseGlobalSslContextParametersMethods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, 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, validateURIMethods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.Component
createEndpoint, createEndpoint, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, isAutowiredEnabled, useRawUriMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContextMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.hl7v2.Hl7v2ConfigurationHolder
getHl7v2TransactionConfiguration, getNakFactoryMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent
getAdditionalConsumerInterceptors, getAdditionalProducerInterceptorsMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParametersMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
MllpTransactionComponent
-
MllpTransactionComponent
protected MllpTransactionComponent(CamelContext camelContext, Hl7v2InteractionId<AuditDatasetType> interactionId)
-
-
Method Details
-
createConfig
protected MllpTransactionEndpointConfiguration createConfig(String uri, Map<String, Object> parameters) throws ExceptionDescription copied from class:MllpComponentCreates a configuration object.- Specified by:
createConfigin 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.netty.NettyEndpoint wrappedEndpoint, MllpTransactionEndpointConfiguration config) Description copied from class:MllpComponentCreates an endpoint object.- Specified by:
createEndpointin classMllpComponent<MllpTransactionEndpointConfiguration,AuditDatasetType extends MllpAuditDataset> - Parameters:
wrappedEndpoint- standard Camel Netty endpoint instance.config- endpoint configuration.- Returns:
- configured MLLP endpoint instance which wraps the Netty one.
-
getClientAuditStrategy
Description copied from interface:AuditableComponentReturns client-side audit strategy instance.- Specified by:
getClientAuditStrategyin interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>- Returns:
- client-side audit strategy instance
-
getServerAuditStrategy
Description copied from interface:AuditableComponentReturns server-side audit strategy instance.- Specified by:
getServerAuditStrategyin interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>- Returns:
- server-side audit strategy instance
-
getInteractionId
- Specified by:
getInteractionIdin interfaceHl7v2ConfigurationHolder<AuditDatasetType extends MllpAuditDataset>
-