protected static class AbstractHeaderMapper.SinglePatternBasedHeaderMatcher extends Object implements AbstractHeaderMapper.HeaderMatcher
AbstractHeaderMapper.HeaderMatcher
that matches if the specified
header matches the specified simple pattern.
The negate == true
state indicates if the matching should be treated as "not matched".
PatternMatchUtils.simpleMatch(String, String)
Constructor and Description |
---|
SinglePatternBasedHeaderMatcher(String pattern) |
SinglePatternBasedHeaderMatcher(String pattern,
boolean negate) |
Modifier and Type | Method and Description |
---|---|
boolean |
isNegated()
Return true if this match should be explicitly excluded from the mapping.
|
boolean |
matchHeader(String headerName)
Specify if the given
headerName matches. |
public SinglePatternBasedHeaderMatcher(String pattern)
public SinglePatternBasedHeaderMatcher(String pattern, boolean negate)
public boolean matchHeader(String headerName)
AbstractHeaderMapper.HeaderMatcher
headerName
matches.matchHeader
in interface AbstractHeaderMapper.HeaderMatcher
headerName
- the header name to be matched.true
if headerName
matches to this AbstractHeaderMapper.HeaderMatcher
.public boolean isNegated()
AbstractHeaderMapper.HeaderMatcher
isNegated
in interface AbstractHeaderMapper.HeaderMatcher