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, waitisNegatedpublic PatternBasedHeaderMatcher(Collection<String> patterns)
public boolean matchHeader(String headerName)
AbstractHeaderMapper.HeaderMatcherheaderName matches.matchHeader in interface AbstractHeaderMapper.HeaderMatcherheaderName - the header name to be matched.true if headerName matches to this AbstractHeaderMapper.HeaderMatcher.