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