Class ProducerMarshalAndInteractiveResponseReceiverInterceptor

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

public class ProducerMarshalAndInteractiveResponseReceiverInterceptor extends InterceptorSupport
Producer-side Hl7 marshalling/unmarshalling interceptor with support for interactive continuation.

Note that this interceptor has the same ID as ProducerMarshalInterceptor.

Author:
Dmytro Rud
  • Constructor Details

    • ProducerMarshalAndInteractiveResponseReceiverInterceptor

      public ProducerMarshalAndInteractiveResponseReceiverInterceptor(String charsetName)
  • Method Details

    • process

      public void process(Exchange exchange) throws Exception
      Marshals the request, sends it to the route, and unmarshals the response.
      Throws:
      Exception
    • createCancelMessage

      public static String createCancelMessage(Message request, Parser parser) throws HL7Exception
      Creates a continuation cancel message on the basis of the given request.

      For requests with HL7 version (MSH-12) prior to 2.4, a CNQ message will be created. For requests with version 2.4 and above, a QCN^J01 message will be created. See paragraph 5.6.3 in HL7 v2.5 specification.

      Throws:
      HL7Exception