Class ConsumerDispatchingInterceptor
java.lang.Object
org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
org.openehealth.ipf.platform.camel.ihe.mllp.core.intercept.consumer.ConsumerDispatchingInterceptor
- All Implemented Interfaces:
Processor
,StartupListener
,Chainable
,Interceptor
public final class ConsumerDispatchingInterceptor
extends InterceptorSupport
implements StartupListener
Interceptor which dispatches an incoming request message to another MLLP route.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorDescriptionConsumerDispatchingInterceptor
(CamelContext camelContext) Constructs a dispatching interceptorConsumerDispatchingInterceptor
(CamelContext camelContext, String... routeIds) Constructs a dispatching interceptor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addTransactionRoutes
(String... routeIds) void
onCamelContextStarted
(CamelContext camelContext, boolean alreadyStarted) void
Methods inherited from class org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport
characterSet, getEndpoint, getWrappedProcessor, setEndpoint, setWrappedProcessor
Methods inherited from class org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
addAfter, addBefore, getAfter, getBefore, getId, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.core.chain.Chainable
getAfter, getBefore, getId
Methods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.Interceptor
getEndpoint
Methods inherited from interface org.apache.camel.StartupListener
onCamelContextFullyStarted, onCamelContextStarting
-
Constructor Details
-
ConsumerDispatchingInterceptor
Constructs a dispatching interceptor.- Parameters:
camelContext
- Camel context.routeIds
- IDs of routes containing target IPF MLLP endpoints.
-
ConsumerDispatchingInterceptor
Constructs a dispatching interceptor- Parameters:
camelContext
- Camel context
-
-
Method Details
-
addTransactionRoutes
-
onCamelContextStarted
public void onCamelContextStarted(CamelContext camelContext, boolean alreadyStarted) throws Exception - Specified by:
onCamelContextStarted
in interfaceStartupListener
- Throws:
Exception
-
process
-