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:
org.apache.camel.Processor,org.openehealth.ipf.commons.ihe.core.chain.Chainable,org.openehealth.ipf.platform.camel.ihe.core.Interceptor
public class ProducerMarshalAndInteractiveResponseReceiverInterceptor extends org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupportProducer-side Hl7 marshalling/unmarshalling interceptor with support for interactive continuation.Note that this interceptor has the same ID as
ProducerMarshalInterceptor.- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description ProducerMarshalAndInteractiveResponseReceiverInterceptor(String charsetName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcreateCancelMessage(ca.uhn.hl7v2.model.Message request, ca.uhn.hl7v2.parser.Parser parser)Creates a continuation cancel message on the basis of the given request.voidprocess(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ProducerMarshalAndInteractiveResponseReceiverInterceptor
public ProducerMarshalAndInteractiveResponseReceiverInterceptor(String charsetName)
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws ExceptionMarshals 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
-
-