Class NegatedRequestMatcher
- java.lang.Object
-
- org.springframework.security.web.util.matcher.NegatedRequestMatcher
-
- All Implemented Interfaces:
RequestMatcher
public class NegatedRequestMatcher extends java.lang.Object implements RequestMatcher
ARequestMatcherthat will negate theRequestMatcherpassed in. For example, if theRequestMatcherpassed in returns true,NegatedRequestMatcherwill return false. If theRequestMatcherpassed in returns false,NegatedRequestMatcherwill return true.- Since:
- 3.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult
-
-
Constructor Summary
Constructors Constructor Description NegatedRequestMatcher(RequestMatcher requestMatcher)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(javax.servlet.http.HttpServletRequest request)Decides whether the rule implemented by the strategy matches the supplied request.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
-
-
-
Constructor Detail
-
NegatedRequestMatcher
public NegatedRequestMatcher(RequestMatcher requestMatcher)
Creates a new instance- Parameters:
requestMatcher- theRequestMatcherthat will be negated.
-
-
Method Detail
-
matches
public boolean matches(javax.servlet.http.HttpServletRequest request)
Description copied from interface:RequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- Specified by:
matchesin interfaceRequestMatcher- Parameters:
request- the request to check for a match- Returns:
- true if the request matches, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-