Class ConsumerAdaptingInterceptor
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.consumer.ConsumerAdaptingInterceptor
- All Implemented Interfaces:
Processor
,Chainable
,Interceptor
Consumer-side Camel interceptor which creates a
Message
from various possible response types.- Author:
- Dmytro Rud
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor which does not enforce the use of a particular character set.ConsumerAdaptingInterceptor
(String charsetName) Constructor which enforces the use of a particular character set. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts response to aMessage
, throws aHl7v2AdaptingException
on failure.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
-
Field Details
-
ACK_TYPE_CODE_HEADER
- See Also:
-
-
Constructor Details
-
ConsumerAdaptingInterceptor
Constructor which enforces the use of a particular character set. 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.
-
ConsumerAdaptingInterceptor
public ConsumerAdaptingInterceptor()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 response to aMessage
, throws aHl7v2AdaptingException
on failure.- Throws:
Exception
-