Interface RequestMatcher
- All Known Implementing Classes:
- AndRequestMatcher,- AntPathRequestMatcher,- AnyRequestMatcher,- CasGatewayResolverRequestMatcher,- DispatcherTypeRequestMatcher,- ELRequestMatcher,- IpAddressMatcher,- MediaTypeRequestMatcher,- MvcRequestMatcher,- NegatedRequestMatcher,- OrRequestMatcher,- ParameterRequestMatcher,- RegexRequestMatcher,- RequestHeaderRequestMatcher
public interface RequestMatcher
Simple strategy to match an HttpServletRequest.
- Since:
- 3.0.2
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classThe result of matching against an HttpServletRequest Contains the status, true or false, of the match and if present, any variables extracted from the match
- 
Method SummaryModifier and TypeMethodDescriptiondefault RequestMatcher.MatchResultmatcher(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.
- 
Method Details- 
matchesboolean matches(jakarta.servlet.http.HttpServletRequest request) Decides whether the rule implemented by the strategy matches the supplied request.- Parameters:
- request- the request to check for a match
- Returns:
- true if the request matches, false otherwise
 
- 
matcherReturns a MatchResult for this RequestMatcher The default implementation returnsCollections.emptyMap()whenRequestMatcher.MatchResult.getVariables()is invoked.- Returns:
- the MatchResult from comparing this RequestMatcher against the HttpServletRequest
- Since:
- 5.2
 
 
-