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 valuebooleanisMatch()static RequestMatcher.MatchResultmatch()Creates an instance ofRequestMatcher.MatchResultthat is a match with no variablesstatic RequestMatcher.MatchResultCreates an instance ofRequestMatcher.MatchResultthat is a match with the specified variablesstatic RequestMatcher.MatchResultnotMatch()Creates an instance ofRequestMatcher.MatchResultthat 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.MatchResultthat is a match with no variables- Returns:
 RequestMatcher.MatchResultthat is a match with no variables
 - 
match
Creates an instance ofRequestMatcher.MatchResultthat is a match with the specified variables- Parameters:
 variables- the specified variables- Returns:
 RequestMatcher.MatchResultthat is a match with the specified variables
 - 
notMatch
Creates an instance ofRequestMatcher.MatchResultthat is not a match.- Returns:
 RequestMatcher.MatchResultthat is not a match
 
 -