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.StartupListener
Interceptor which dispatches an incoming request message to another MLLP route.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext) Constructs a dispatching interceptorConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext, String... routeIds) Constructs a dispatching interceptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTransactionRoutes(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, setWrappedProcessorMethods inherited from class org.openehealth.ipf.commons.ihe.core.chain.ChainableImpl
addAfter, addBefore, getAfter, getBefore, getId, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openehealth.ipf.commons.ihe.core.chain.Chainable
getAfter, getBefore, getIdMethods inherited from interface org.openehealth.ipf.platform.camel.ihe.core.Interceptor
getEndpointMethods inherited from interface org.apache.camel.StartupListener
onCamelContextFullyStarted, onCamelContextStarting
-
Constructor Details
-
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 Details
-
addTransactionRoutes
-
onCamelContextStarted
public void onCamelContextStarted(org.apache.camel.CamelContext camelContext, boolean alreadyStarted) throws Exception - Specified by:
onCamelContextStartedin interfaceorg.apache.camel.StartupListener- Throws:
Exception
-
process
- Specified by:
processin interfaceorg.apache.camel.Processor- Throws:
Exception
-