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:
org.apache.camel.Processor,org.apache.camel.StartupListener,org.openehealth.ipf.commons.ihe.core.chain.Chainable,org.openehealth.ipf.platform.camel.ihe.core.Interceptor
public final class ConsumerDispatchingInterceptor extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport implements org.apache.camel.StartupListenerInterceptor which dispatches an incoming request message to another MLLP route.- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description ConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext)Constructs a dispatching interceptorConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext, String... routeIds)Constructs a dispatching interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddTransactionRoutes(String... routeIds)voidonCamelContextStarted(org.apache.camel.CamelContext camelContext, boolean alreadyStarted)voidprocess(org.apache.camel.Exchange exchange)-
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
-
-
-
-
Constructor Detail
-
ConsumerDispatchingInterceptor
public ConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext, String... routeIds)Constructs a dispatching interceptor.- Parameters:
camelContext- Camel context.routeIds- IDs of routes containing target IPF MLLP endpoints.
-
ConsumerDispatchingInterceptor
public ConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext)
Constructs a dispatching interceptor- Parameters:
camelContext- Camel context
-
-
Method Detail
-
addTransactionRoutes
public boolean addTransactionRoutes(String... routeIds)
-
onCamelContextStarted
public void onCamelContextStarted(org.apache.camel.CamelContext camelContext, boolean alreadyStarted) throws Exception- Specified by:
onCamelContextStartedin interfaceorg.apache.camel.StartupListener- Throws:
Exception
-
-