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 Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult -
Constructor Summary
ConstructorsConstructorDescriptionAndRequestMatcher(List<RequestMatcher> requestMatchers) Creates a new instanceAndRequestMatcher(RequestMatcher... requestMatchers) Creates a new instance -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Constructor Details
-
AndRequestMatcher
Creates a new instance- Parameters:
requestMatchers- theRequestMatcherinstances to try
-
AndRequestMatcher
Creates a new instance- Parameters:
requestMatchers- theRequestMatcherinstances to try
-
-
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
-
toString
-