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 providedMessageHeaders
into the returning message type.Map the provided source into aMessageHeaders
instance.
-
Method Details
-
fromHeaders
Map the providedMessageHeaders
into the returning message type.- Parameters:
headers
- the headers from which to map.- Returns:
- the mapped message instance.
-
toHeaders
Map the provided source into aMessageHeaders
instance.- Parameters:
source
- the source from which to map.- Returns:
- the mapped
MessageHeaders
instance.
-