Class RequestMatcher.MatchResult
java.lang.Object
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult
- Enclosing interface:
- RequestMatcher
The result of matching against an HttpServletRequest Contains the status, true or
false, of the match and if present, any variables extracted from the match
- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionReturns the extracted variable values where the key is the variable name and the value is the variable valueboolean
isMatch()
static RequestMatcher.MatchResult
match()
Creates an instance ofRequestMatcher.MatchResult
that is a match with no variablesstatic RequestMatcher.MatchResult
Creates an instance ofRequestMatcher.MatchResult
that is a match with the specified variablesstatic RequestMatcher.MatchResult
notMatch()
Creates an instance ofRequestMatcher.MatchResult
that is not a match.
-
Method Details
-
isMatch
public boolean isMatch()- Returns:
- true if the comparison against the HttpServletRequest produced a successful match
-
getVariables
Returns the extracted variable values where the key is the variable name and the value is the variable value- Returns:
- a map containing key-value pairs representing extracted variable names and variable values
-
match
Creates an instance ofRequestMatcher.MatchResult
that is a match with no variables- Returns:
-
match
Creates an instance ofRequestMatcher.MatchResult
that is a match with the specified variables- Parameters:
variables
-- Returns:
-
notMatch
Creates an instance ofRequestMatcher.MatchResult
that is not a match.- Returns:
-