Class CustomMllpComponent<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>
org.openehealth.ipf.platform.camel.ihe.mllp.custom.CustomMllpComponent<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>,org.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent,Hl7v2ConfigurationHolder<AuditDatasetType>
public class CustomMllpComponent<AuditDatasetType extends MllpAuditDataset>
extends MllpTransactionComponent<AuditDatasetType>
Component for custom MLLP components. The HL7v2 configuration as well as the ATNA audit strategies must be
provided as endpoint parameters "hl7TransactionConfig", "clientAuditStrategy", and "serverAuditStrategy".
- Author:
- Christian Ohr
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MllpTransactionEndpointConfigurationcreateConfig(String uri, Map<String, Object> parameters) Creates a configuration object.org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType>org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType>voidsetTransactionConfiguration(Hl7v2TransactionConfiguration<AuditDatasetType> transactionConfiguration) Methods inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpTransactionComponent
createEndpoint, getInteractionIdMethods 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, 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
getCamelContext, setCamelContextMethods inherited from interface org.apache.camel.Component
createEndpoint, createEndpoint, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, isAutowiredEnabled, useRawUriMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.InterceptableComponent
getAdditionalConsumerInterceptors, getAdditionalProducerInterceptorsMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods 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
-
CustomMllpComponent
public CustomMllpComponent() -
CustomMllpComponent
public CustomMllpComponent(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
createConfig
protected MllpTransactionEndpointConfiguration createConfig(String uri, Map<String, Object> parameters) throws ExceptionDescription copied from class:MllpComponentCreates a configuration object.- Overrides:
createConfigin classMllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>- Parameters:
uri- endpoint URIparameters- URL parameters.- Returns:
- configuration object filled with values from the provided parameter map.
- Throws:
Exception
-
getHl7v2TransactionConfiguration
-
getClientAuditStrategy
public org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType> getClientAuditStrategy()- Specified by:
getClientAuditStrategyin interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>- Overrides:
getClientAuditStrategyin classMllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>
-
getServerAuditStrategy
public org.openehealth.ipf.commons.ihe.core.atna.AuditStrategy<AuditDatasetType> getServerAuditStrategy()- Specified by:
getServerAuditStrategyin interfaceAuditableComponent<AuditDatasetType extends MllpAuditDataset>- Overrides:
getServerAuditStrategyin classMllpTransactionComponent<AuditDatasetType extends MllpAuditDataset>
-
getNakFactory
-
setTransactionConfiguration
public void setTransactionConfiguration(Hl7v2TransactionConfiguration<AuditDatasetType> transactionConfiguration)
-