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 Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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
- 
matches
public 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 interfaceRequestMatcher- Parameters:
 request- the request to check for a match- Returns:
 - true if the request matches, false otherwise
 
 - 
matcher
Description copied from interface:RequestMatcherReturns a MatchResult for this RequestMatcher The default implementation returnsCollections.emptyMap()whenRequestMatcher.MatchResult.getVariables()is invoked.- Specified by:
 matcherin interfaceRequestMatcher- Returns:
 - the MatchResult from comparing this RequestMatcher against the HttpServletRequest
 
 
 -