public class NegatedRequestMatcher extends java.lang.Object implements RequestMatcher
RequestMatcher
that will negate the RequestMatcher
passed in. For
example, if the RequestMatcher
passed in returns true,
NegatedRequestMatcher
will return false. If the RequestMatcher
passed
in returns false, NegatedRequestMatcher
will return true.RequestMatcher.MatchResult
Constructor and Description |
---|
NegatedRequestMatcher(RequestMatcher requestMatcher)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(javax.servlet.http.HttpServletRequest request)
Decides whether the rule implemented by the strategy matches the supplied request.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
matcher
public NegatedRequestMatcher(RequestMatcher requestMatcher)
requestMatcher
- the RequestMatcher
that will be negated.public boolean matches(javax.servlet.http.HttpServletRequest request)
RequestMatcher
matches
in interface RequestMatcher
request
- the request to check for a matchpublic java.lang.String toString()
toString
in class java.lang.Object