public class CamelMessageComposer extends BaseMessageComposer<CamelBindingData>
Constructor and Description |
---|
CamelMessageComposer() |
Modifier and Type | Method and Description |
---|---|
Message |
compose(CamelBindingData source,
Exchange exchange)
Takes the data from the passed in source object and composes a SwithYardMessage based on the specified Exchange.
|
CamelBindingData |
decompose(Exchange exchange,
CamelBindingData target)
Takes the data from the SwitchYardMessage in the specified Exchange and decomposes it into the target object.
|
getContextMapper, getMessageType, setContextMapper
public Message compose(CamelBindingData source, Exchange exchange) throws Exception
source
- the source objectexchange
- the exchange to useException
- if a problem happenspublic CamelBindingData decompose(Exchange exchange, CamelBindingData target) throws Exception
exchange
- the exchange to usetarget
- the target objectException
- if a problem happensCopyright © 2013–2018 JBoss by Red Hat. All rights reserved.