Class UriMatchers
java.lang.Object
org.mapfish.print.processor.http.matcher.UriMatchers
Hold a list of
URIMatcher and implement the logic to see if any matches an URI.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetMatchers(List<? extends URIMatcher> matchers) Set the matchers.voidValidate the configuration.
-
Constructor Details
-
UriMatchers
public UriMatchers()Constructor. -
UriMatchers
Constructor.- Parameters:
matchers- the list
-
-
Method Details
-
setMatchers
Set the matchers.- Parameters:
matchers- the new list.
-
matches
public boolean matches(URI uri, org.springframework.http.HttpMethod httpMethod) throws SocketException, UnknownHostException, MalformedURLException - Parameters:
uri- the URI to create a request forhttpMethod- the HTTP method to execute- Returns:
- true if it's matching.
- Throws:
SocketExceptionUnknownHostExceptionMalformedURLException
-
matches
public boolean matches(MatchInfo matchInfo) throws SocketException, UnknownHostException, MalformedURLException - Parameters:
matchInfo- The info to check for matches.- Returns:
- true if it's matching.
- Throws:
SocketExceptionUnknownHostExceptionMalformedURLException
-
validate
Validate the configuration.- Parameters:
validationErrors- where to put the errors.
-