protected static class AbstractHeaderMapper.PrefixBasedMatcher extends Object implements AbstractHeaderMapper.HeaderMatcher
AbstractHeaderMapper.HeaderMatcher
that matches if the specified
header starts with a configurable prefix.Constructor and Description |
---|
PrefixBasedMatcher(boolean match,
String prefix) |
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 PrefixBasedMatcher(boolean match, String prefix)
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
.