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 Details

    • fromHeaders

      S fromHeaders(MessageHeaders headers)
      Map the provided MessageHeaders into the returning message type.
      Parameters:
      headers - the headers from which to map.
      Returns:
      the mapped message instance.
    • toHeaders

      MessageHeaders toHeaders(S source)
      Map the provided source into a MessageHeaders instance.
      Parameters:
      source - the source from which to map.
      Returns:
      the mapped MessageHeaders instance.