Class AndRequestMatcher

java.lang.Object
org.springframework.security.web.util.matcher.AndRequestMatcher
All Implemented Interfaces:
RequestMatcher

public final class AndRequestMatcher extends Object implements RequestMatcher
RequestMatcher that will return true if all of the passed in RequestMatcher instances match.
Since:
3.2
  • Constructor Details

    • AndRequestMatcher

      public AndRequestMatcher(List<RequestMatcher> requestMatchers)
      Creates a new instance
      Parameters:
      requestMatchers - the RequestMatcher instances to try
    • AndRequestMatcher

      public AndRequestMatcher(RequestMatcher... requestMatchers)
      Creates a new instance
      Parameters:
      requestMatchers - the RequestMatcher instances to try
  • Method Details

    • matches

      public boolean matches(jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: RequestMatcher
      Decides whether the rule implemented by the strategy matches the supplied request.
      Specified by:
      matches in interface RequestMatcher
      Parameters:
      request - the request to check for a match
      Returns:
      true if the request matches, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object