T - type of the instance to and from which headers will be mappedpublic interface HeaderMapper<T>
MessageHeaders to and from other
types of objects. This would typically be used by adapters where the "other type"
has a concept of headers or properties (HTTP, JMS, AMQP, etc).| Modifier and Type | Method and Description |
|---|---|
void |
fromHeaders(MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified target message. |
MessageHeaders |
toHeaders(T source)
Map from the given target message to abstracted
MessageHeaders. |
void fromHeaders(MessageHeaders headers, T target)
MessageHeaders to the specified target message.headers - the abstracted MessageHeaderstarget - the native target messageMessageHeaders toHeaders(T source)
MessageHeaders.source - the native target message