Top Description Methods
org.springframework.messaging.support

public Interface HeaderMapper<T>

Known Direct Implementers
org.springframework.messaging.support.AbstractHeaderMapper
Type Parameters
<T>
type of the instance to and from which headers will be mapped
Imports
org.springframework.messaging.MessageHeaders

Generic strategy interface for mapping 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).
Author
Mark Fisher
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
fromHeaders(MessageHeaders
the abstracted MessageHeaders
headers
,
T
the native target message
target
)

Map from the given MessageHeaders to the specified target message.

public MessageHeaders

Returns:

the abstracted MessageHeaders
toHeaders
(T
the native target message
source
)

Map from the given target message to abstracted MessageHeaders.

Method Detail

fromHeadersback to summary
public void fromHeaders(MessageHeaders headers, T target)

Map from the given MessageHeaders to the specified target message.

Parameters
headers:MessageHeaders

the abstracted MessageHeaders

target:T

the native target message

toHeadersback to summary
public MessageHeaders toHeaders(T source)

Map from the given target message to abstracted MessageHeaders.

Parameters
source:T

the native target message

Returns:MessageHeaders

the abstracted MessageHeaders