public class ConsumerAdaptingInterceptor extends InterceptorSupport<HL7v2Endpoint>
Message
from various possible response types.Modifier and Type | Field and Description |
---|---|
static String |
ACK_TYPE_CODE_HEADER |
Constructor and Description |
---|
ConsumerAdaptingInterceptor()
Constructor which does not enforce the use of a particular character set.
|
ConsumerAdaptingInterceptor(String charsetName)
Constructor which enforces the use of a particular character set.
|
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.camel.Exchange exchange)
Converts response to a
Message , throws
a Hl7v2AdaptingException on failure. |
characterSet, getEndpoint, getWrappedProcessor, setEndpoint, setWrappedProcessor
addAfter, addBefore, getAfter, getBefore, getId, setId
public static final String ACK_TYPE_CODE_HEADER
public ConsumerAdaptingInterceptor(String charsetName)
Exchange.CHARSET_NAME
, rewriting its old content.charsetName
- character set to use in all data transformations.public ConsumerAdaptingInterceptor()
Exchange.CHARSET_NAME
,
the default system character set will be used.public void process(org.apache.camel.Exchange exchange) throws Exception
Message
, throws
a Hl7v2AdaptingException
on failure.Exception
Copyright © 2018 Open eHealth Foundation. All rights reserved.