protected static class AbstractHeaderMapper.ContentBasedHeaderMatcher extends Object implements AbstractHeaderMapper.HeaderMatcher
AbstractHeaderMapper.HeaderMatcher
that matches if the specified
header is contained within a list of candidates. The case of the
header does not matter.Constructor and Description |
---|
ContentBasedHeaderMatcher(boolean match,
Collection<String> content) |
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 ContentBasedHeaderMatcher(boolean match, Collection<String> content)
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
.