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.
Strategy interface to determine if a given header name matches.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Return true if this match should be explicitly excluded from the mapping.boolean
matchHeader
(String headerName) Specify if the givenheaderName
matches.
-
Method Details
-
matchHeader
Specify if the givenheaderName
matches.- Parameters:
headerName
- the header name to be matched.- Returns:
true
ifheaderName
matches to thisAbstractHeaderMapper.HeaderMatcher
.
-
isNegated
default boolean isNegated()Return true if this match should be explicitly excluded from the mapping.- Returns:
- true if negated.
-