Class ProducerAdaptingInterceptor

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.hl7v2.intercept.producer.ProducerAdaptingInterceptor
All Implemented Interfaces:
Processor, Chainable, Interceptor

public class ProducerAdaptingInterceptor extends InterceptorSupport
Producer-side Camel interceptor which creates a HAPI Message from various possible request types.
Author:
Dmytro Rud
  • Constructor Details

    • ProducerAdaptingInterceptor

      public ProducerAdaptingInterceptor(String charsetName)
      Constructor which enforces the use of a particular character set if not specified otherwise in MSH-18. The given value will be propagated to the Camel exchange property Exchange.CHARSET_NAME, rewriting its old content.
      Parameters:
      charsetName - character set to use in all data transformations.
    • ProducerAdaptingInterceptor

      public ProducerAdaptingInterceptor()
      Constructor which does not enforce the use of a particular character set. When the Camel exchange does not contain property Exchange.CHARSET_NAME, the default system character set will be used.
  • Method Details

    • process

      public void process(Exchange exchange) throws Exception
      Converts outgoing request to a HAPI Message and performs some exchange configuration.
      Throws:
      Exception