Interface HeaderMapper<T>
- Type Parameters:
T
- type of the instance to and from which headers will be mapped.
- All Known Implementing Classes:
DefaultHttpHeaderMapper
,DefaultJmsHeaderMapper
,DefaultMailHeaderMapper
,JmsHeaderMapper
,StompHeaderMapper
public interface HeaderMapper<T>
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
-
Method Summary
Modifier and Type Method Description void
fromHeaders(MessageHeaders headers, T target)
Map<String,Object>
toHeaders(T source)