public final class ExchangeHelper extends Object
Exchange
objects.Modifier and Type | Method and Description |
---|---|
static TraceHeader |
getTraceHeader(org.apache.camel.Exchange exchange,
boolean mandatory)
Returns the
TraceHeader or throws an IllegalDataException if it is not present and is mandatory. |
static void |
propagateMessage(org.apache.camel.Exchange exchange)
Propagates (copies) the
Body , the Attachments and the Headers of the Message
from from IN to OUT. |
@Nullable public static TraceHeader getTraceHeader(org.apache.camel.Exchange exchange, boolean mandatory)
TraceHeader
or throws an IllegalDataException
if it is not present and is mandatory.exchange
- the exchange messagemandatory
- true if trace header is mandatory outputTraceHeader
object as header value from exchangepublic static void propagateMessage(org.apache.camel.Exchange exchange)
Body
, the Attachments
and the Headers
of the Message
from from IN to OUT.exchange
- the exchange messageCopyright © 2018 Pivotal Software, Inc.. All rights reserved.