Interface HeaderMapper<S>
- Type Parameters:
S- the source message type.
- All Known Subinterfaces:
ContextAwareHeaderMapper<S>
- All Known Implementing Classes:
SqsHeaderMapper
public interface HeaderMapper<S>
Mapper interface to map from and to
MessageHeaders and a given source type.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionfromHeaders(MessageHeaders headers) Map the providedMessageHeadersinto the returning message type.Map the provided source into aMessageHeadersinstance.
-
Method Details
-
fromHeaders
Map the providedMessageHeadersinto the returning message type.- Parameters:
headers- the headers from which to map.- Returns:
- the mapped message instance.
-
toHeaders
Map the provided source into aMessageHeadersinstance.- Parameters:
source- the source from which to map.- Returns:
- the mapped
MessageHeadersinstance.
-