Class ParameterRequestMatcher
java.lang.Object
org.springframework.security.web.util.matcher.ParameterRequestMatcher
- All Implemented Interfaces:
- RequestMatcher
A 
RequestMatcher for matching on a request parameter and its value.
 
 The value may also be specified as a placeholder in order to match on any value,
 returning the value as part of the RequestMatcher.MatchResult.
- Since:
- 6.4
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcherRequestMatcher.MatchResult
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionmatcher(jakarta.servlet.http.HttpServletRequest request) Returns a MatchResult for this RequestMatcher The default implementation returnsCollections.emptyMap()whenRequestMatcher.MatchResult.getVariables()is invoked.booleanmatches(jakarta.servlet.http.HttpServletRequest request) Decides whether the rule implemented by the strategy matches the supplied request.
- 
Constructor Details- 
ParameterRequestMatcher
- 
ParameterRequestMatcher
 
- 
- 
Method Details- 
matchespublic boolean matches(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- Specified by:
- matchesin interface- RequestMatcher
- Parameters:
- request- the request to check for a match
- Returns:
- true if the request matches, false otherwise
 
- 
matcherDescription copied from interface:RequestMatcherReturns a MatchResult for this RequestMatcher The default implementation returnsCollections.emptyMap()whenRequestMatcher.MatchResult.getVariables()is invoked.- Specified by:
- matcherin interface- RequestMatcher
- Returns:
- the MatchResult from comparing this RequestMatcher against the HttpServletRequest
 
 
-