public final class UriMatchers
extends java.lang.Object
URIMatcher and implement the logic to see if any matches an URI.| Constructor and Description |
|---|
UriMatchers()
Constructor.
|
UriMatchers(java.util.List<? extends URIMatcher> matchers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(MatchInfo matchInfo) |
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 UriMatchers()
public UriMatchers(java.util.List<? extends URIMatcher> matchers)
matchers - the listpublic 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 boolean matches(MatchInfo matchInfo) throws java.net.SocketException, java.net.UnknownHostException, java.net.MalformedURLException
matchInfo - The info to check for matches.java.net.SocketExceptionjava.net.UnknownHostExceptionjava.net.MalformedURLExceptionpublic void validate(java.util.List<java.lang.Throwable> validationErrors)
validationErrors - where to put the errors.