Class ProducerMarshalAndInteractiveResponseReceiverInterceptor

  • All Implemented Interfaces:
    org.apache.camel.Processor, org.openehealth.ipf.commons.ihe.core.chain.Chainable, org.openehealth.ipf.platform.camel.ihe.core.Interceptor<MllpTransactionEndpoint<?>>

    public class ProducerMarshalAndInteractiveResponseReceiverInterceptor
    extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport<MllpTransactionEndpoint<?>>
    Producer-side Hl7 marshalling/unmarshalling interceptor with support for interactive continuation.

    Note that this interceptor has the same ID as ProducerMarshalInterceptor.

    Author:
    Dmytro Rud
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static String createCancelMessage​(ca.uhn.hl7v2.model.Message request, ca.uhn.hl7v2.parser.Parser parser)
      Creates a continuation cancel message on the basis of the given request.
      void process​(org.apache.camel.Exchange exchange)
      Marshals the request, sends it to the route, and unmarshals the response.
      • 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
    • Constructor Detail

      • ProducerMarshalAndInteractiveResponseReceiverInterceptor

        public ProducerMarshalAndInteractiveResponseReceiverInterceptor()
    • Method Detail

      • process

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

        public static String createCancelMessage​(ca.uhn.hl7v2.model.Message request,
                                                 ca.uhn.hl7v2.parser.Parser parser)
                                          throws ca.uhn.hl7v2.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:
        ca.uhn.hl7v2.HL7Exception