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

    Constructors
    Constructor
    Description
    ConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext)
    Constructs a dispatching interceptor
    ConsumerDispatchingInterceptor(org.apache.camel.CamelContext camelContext, String... routeIds)
    Constructs a dispatching interceptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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 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

      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

      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