public final class UriMatchers
extends java.lang.Object
URIMatcher and implement the logic to see if any matches an URI.| Constructor and Description |
|---|
UriMatchers() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod) |
void |
setMatchers(java.util.List<? extends URIMatcher> matchers)
Set the matchers.
|
void |
validate(java.util.List<java.lang.Throwable> validationErrors)
Validate the configuration.
|
public void setMatchers(java.util.List<? extends URIMatcher> matchers)
matchers - the new list.public boolean matches(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod)
throws java.net.SocketException,
java.net.UnknownHostException,
java.net.MalformedURLException
uri - the URI to create a request forhttpMethod - the HTTP method to executejava.net.SocketExceptionjava.net.UnknownHostExceptionjava.net.MalformedURLExceptionpublic void validate(java.util.List<java.lang.Throwable> validationErrors)
validationErrors - where to put the errors.