D
- the type of binding datapublic interface MessageComposer<D extends BindingData>
Modifier and Type | Method and Description |
---|---|
Message |
compose(D source,
Exchange exchange)
Takes the data from the passed in source object and composes a SwithYardMessage based on the specified Exchange.
|
D |
decompose(Exchange exchange,
D target)
Takes the data from the SwitchYardMessage in the specified Exchange and decomposes it into the target object.
|
ContextMapper<D> |
getContextMapper()
Gets this message composer's associated context mapper.
|
MessageComposer<D> |
setContextMapper(ContextMapper<D> contextMapper)
Sets this message composer's associated context mapper.
|
ContextMapper<D> getContextMapper()
MessageComposer<D> setContextMapper(ContextMapper<D> contextMapper)
contextMapper
- the context mapperMessage compose(D source, Exchange exchange) throws Exception
source
- the source objectexchange
- the exchange to useException
- if a problem happensD decompose(Exchange exchange, D target) throws Exception
exchange
- the exchange to usetarget
- the target objectException
- if a problem happensCopyright © 2013–2016 JBoss by Red Hat. All rights reserved.