Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addTransactionRoutes​(String... routeIds)  
      void onCamelContextStarted​(org.apache.camel.CamelContext camelContext, boolean alreadyStarted)  
      void process​(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 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 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:
        onCamelContextStarted in interface org.apache.camel.StartupListener
        Throws:
        Exception
      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Specified by:
        process in interface org.apache.camel.Processor
        Throws:
        Exception