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.netty.NettyComponent
org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent<MllpDispatchEndpointConfiguration,MllpAuditDataset>
org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpDispatchComponent
- All Implemented Interfaces:
AutoCloseable
,CamelContextAware
,Component
,Service
,ShutdownableService
,SSLContextParametersAware
,StatefulService
,SuspendableService
,InterceptableComponent
,Hl7v2ConfigurationHolder<MllpAuditDataset>
public class MllpDispatchComponent
extends MllpComponent<MllpDispatchEndpointConfiguration,MllpAuditDataset>
MLLP dispatching Camel component.
- 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_NAME
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected MllpDispatchEndpointConfiguration
createConfig
(String uri, Map<String, Object> parameters) Creates a configuration object.protected MllpEndpoint<?,
?, ?> createEndpoint
(org.apache.camel.component.netty.NettyEndpoint wrappedEndpoint, MllpDispatchEndpointConfiguration config) Creates an endpoint object.Returns component configuration.Returns transaction-specific NAK factory.Methods inherited from class org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent
createEndpoint, getEndpointPropertyConfigurer, parseConfiguration
Methods inherited from class org.apache.camel.component.netty.NettyComponent
doStart, doStop, getConfiguration, getExecutorService, getMaximumPoolSize, isUseGlobalSslContextParameters, setConfiguration, setExecutorService, setMaximumPoolSize, setUseGlobalSslContextParameters
Methods 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, 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.core.InterceptableComponent
getAdditionalConsumerInterceptors, getAdditionalProducerInterceptors
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.SSLContextParametersAware
retrieveGlobalSslContextParameters
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
CONFIGURATION
-
-
Constructor Details
-
MllpDispatchComponent
public MllpDispatchComponent()
-
-
Method Details
-
createConfig
protected MllpDispatchEndpointConfiguration createConfig(String uri, Map<String, Object> parameters) throws ExceptionDescription 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.netty.NettyEndpoint wrappedEndpoint, MllpDispatchEndpointConfiguration config) Description copied from class:MllpComponent
Creates an endpoint object.- Specified by:
createEndpoint
in classMllpComponent<MllpDispatchEndpointConfiguration,
MllpAuditDataset> - Parameters:
wrappedEndpoint
- standard Camel Netty endpoint instance.config
- endpoint configuration.- Returns:
- configured MLLP endpoint instance which wraps the Netty one.
-
getInteractionId
-
getHl7v2TransactionConfiguration
Description copied from interface:Hl7v2ConfigurationHolder
Returns component configuration. -
getNakFactory
Description copied from interface:Hl7v2ConfigurationHolder
Returns transaction-specific NAK factory.
-