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 booleanisNegated()Return true if this match should be explicitly excluded from the mapping.booleanmatchHeader(String headerName)Specify if the givenheaderNamematches.
-
Method Details
-
matchHeader
Specify if the givenheaderNamematches.- Parameters:
headerName- the header name to be matched.- Returns:
trueifheaderNamematches to thisAbstractHeaderMapper.HeaderMatcher.
-
isNegated
default boolean isNegated()Return true if this match should be explicitly excluded from the mapping.- Returns:
- true if negated.
-