public class MapMessageConverter extends java.lang.Object implements MessageConverter
Constructor and Description |
---|
MapMessageConverter() |
Modifier and Type | Method and Description |
---|---|
<P> java.lang.Object |
fromMessage(Message<P> message) |
void |
setFilterHeadersInToMessage(boolean filterHeadersInToMessage)
By default all headers on Map passed to
toMessage(Object)
will be mapped. |
void |
setHeaderNames(java.lang.String... headerNames)
Headers to be converted in
fromMessage(Message) . |
<P> Message<P> |
toMessage(java.lang.Object object) |
public void setHeaderNames(java.lang.String... headerNames)
fromMessage(Message)
.
toMessage(Object)
will populate all headers found in
the map, unless filterHeadersInToMessage
is true.headerNames
- public void setFilterHeadersInToMessage(boolean filterHeadersInToMessage)
toMessage(Object)
will be mapped. Set this property
to 'true' if you wish to limit the inbound headers to those in
the #headerNames.filterHeadersInToMessage
- public <P> Message<P> toMessage(java.lang.Object object)
toMessage
in interface MessageConverter
public <P> java.lang.Object fromMessage(Message<P> message)
fromMessage
in interface MessageConverter