protected static class AbstractHeaderMapper.PatternBasedHeaderMatcher extends Object implements AbstractHeaderMapper.HeaderMatcher
AbstractHeaderMapper.HeaderMatcher
that matches if the specified
header matches one of the specified simple patterns.PatternMatchUtils.simpleMatch(String, String)
Constructor and Description |
---|
PatternBasedHeaderMatcher(Collection<String> patterns) |
Modifier and Type | Method and Description |
---|---|
boolean |
matchHeader(String headerName)
Specify if the given
headerName matches. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNegated
public PatternBasedHeaderMatcher(Collection<String> patterns)
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
.