Interface HeaderMapper<T>
- Type Parameters:
T- type of the instance to and from which headers will be mapped
- All Known Subinterfaces:
JmsHeaderMapper
- All Known Implementing Classes:
AbstractHeaderMapper,SimpleJmsHeaderMapper
public interface HeaderMapper<T>
Generic strategy interface for mappingMessageHeadersto 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).- Since:
- 4.1
- Author:
- Mark Fisher
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfromHeaders(MessageHeaders headers, T target)Map from the givenMessageHeadersto the specified target message.MessageHeaderstoHeaders(T source)Map from the given target message to abstractedMessageHeaders.
Method Detail
fromHeaders
void fromHeaders(MessageHeaders headers, T target)
Map from the givenMessageHeadersto the specified target message.- Parameters:
headers- the abstracted MessageHeaderstarget- the native target message
toHeaders
MessageHeaders toHeaders(T source)
Map from the given target message to abstractedMessageHeaders.- Parameters:
source- the native target message- Returns:
- the abstracted MessageHeaders