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
Producer-side Camel interceptor which creates a HAPI Message from various possible request types.
- Author:
- Dmytro Rud
-
Constructor Summary
ConstructorDescriptionConstructor which does not enforce the use of a particular character set.ProducerAdaptingInterceptor
(String charsetName) Constructor which enforces the use of a particular character set if not specified otherwise in MSH-18. -
Method Summary
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
-
Constructor Details
-
ProducerAdaptingInterceptor
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 propertyExchange.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 propertyExchange.CHARSET_NAME
, the default system character set will be used.
-
-
Method Details
-
process
Converts outgoing request to a HAPI Message and performs some exchange configuration.- Throws:
Exception
-