Class AndRequestMatcher
java.lang.Object
org.springframework.security.web.util.matcher.AndRequestMatcher
- All Implemented Interfaces:
- RequestMatcher
RequestMatcher that will return true if all of the passed in
 RequestMatcher instances match.- Since:
- 3.2
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcherRequestMatcher.MatchResult
- 
Constructor SummaryConstructorsConstructorDescriptionAndRequestMatcher(List<RequestMatcher> requestMatchers) Creates a new instanceAndRequestMatcher(RequestMatcher... requestMatchers) Creates a new instance
- 
Method SummaryModifier and TypeMethodDescriptionmatcher(jakarta.servlet.http.HttpServletRequest request) Returns aRequestMatcher.MatchResultfor thisHttpServletRequest.booleanmatches(jakarta.servlet.http.HttpServletRequest request) Decides whether the rule implemented by the strategy matches the supplied request.toString()
- 
Constructor Details- 
AndRequestMatcherCreates a new instance- Parameters:
- requestMatchers- the- RequestMatcherinstances to try
 
- 
AndRequestMatcherCreates a new instance- Parameters:
- requestMatchers- the- RequestMatcherinstances to try
 
 
- 
- 
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
 
- 
matcherReturns aRequestMatcher.MatchResultfor thisHttpServletRequest. In the case of a match, request variables are a composition of the request variables in underlying matchers. In the event that two matchers have the same key, the last key is the one propagated.- Specified by:
- matcherin interface- RequestMatcher
- Parameters:
- request- the HTTP request
- Returns:
- a RequestMatcher.MatchResultbased on the given HTTP request
- Since:
- 6.1
 
- 
toString
 
-