接口 HeaderMapper<T>
- 类型参数:
T
- type of the instance to and from which headers will be mapped
- 所有已知子接口:
JmsHeaderMapper
public interface HeaderMapper<T>
Generic strategy interface for mappingMessageHeaders
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).- 从以下版本开始:
- 4.1
- 作者:
- Mark Fisher
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
fromHeaders(MessageHeaders headers, T target)
Map from the givenMessageHeaders
to the specified target message.MessageHeaders
toHeaders(T source)
Map from the given target message to abstractedMessageHeaders
.
方法详细资料
fromHeaders
void fromHeaders(MessageHeaders headers, T target)
Map from the givenMessageHeaders
to the specified target message.- 参数:
headers
- the abstracted MessageHeaderstarget
- the native target message
toHeaders
MessageHeaders toHeaders(T source)
Map from the given target message to abstractedMessageHeaders
.- 参数:
source
- the native target message- 返回:
- the abstracted MessageHeaders