public final class AndRequestMatcher extends java.lang.Object implements RequestMatcher
RequestMatcher
that will return true if all of the passed in
RequestMatcher
instances match.RequestMatcher.MatchResult
Constructor and Description |
---|
AndRequestMatcher(java.util.List<RequestMatcher> requestMatchers)
Creates a new instance
|
AndRequestMatcher(RequestMatcher... requestMatchers)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(javax.servlet.http.HttpServletRequest request)
Decides whether the rule implemented by the strategy matches the supplied request.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
matcher
public AndRequestMatcher(java.util.List<RequestMatcher> requestMatchers)
requestMatchers
- the RequestMatcher
instances to trypublic AndRequestMatcher(RequestMatcher... requestMatchers)
requestMatchers
- the RequestMatcher
instances to trypublic boolean matches(javax.servlet.http.HttpServletRequest request)
RequestMatcher
matches
in interface RequestMatcher
request
- the request to check for a matchpublic java.lang.String toString()
toString
in class java.lang.Object