Interface AbstractHeaderMapper.HeaderMatcher

All Known Implementing Classes:
AbstractHeaderMapper.CompositeHeaderMatcher, AbstractHeaderMapper.ContentBasedHeaderMatcher, AbstractHeaderMapper.PatternBasedHeaderMatcher, AbstractHeaderMapper.PrefixBasedMatcher, AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
Enclosing class:
AbstractHeaderMapper<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public static interface AbstractHeaderMapper.HeaderMatcher
Strategy interface to determine if a given header name matches.
Since:
4.1
  • Method Summary

    Modifier and Type Method Description
    default boolean isNegated()
    Return true if this match should be explicitly excluded from the mapping.
    boolean matchHeader​(String headerName)
    Specify if the given headerName matches.
  • Method Details

    • matchHeader

      boolean matchHeader​(String headerName)
      Specify if the given headerName matches.
      Parameters:
      headerName - the header name to be matched.
      Returns:
      true if headerName matches to this AbstractHeaderMapper.HeaderMatcher.
    • isNegated

      default boolean isNegated()
      Return true if this match should be explicitly excluded from the mapping.
      Returns:
      true if negated.