1 package org.springframework.security.util;
2
3 /**
4 * Strategy for deciding whether configured path matches a submitted candidate URL.
5 *
6 * @author Luke Taylor
7 * @version $Id: UrlMatcher.java 2673 2008-02-28 19:29:33Z luke_t $
8 * @since 2.0
9 */
10 public interface UrlMatcher {
11
12 Object compile(String urlPattern);
13
14 boolean pathMatchesUrl(Object compiledUrlPattern, String url);
15
16 /** Returns the path which matches every URL */
17 String getUniversalMatchPattern();
18
19 /**
20 * Returns true if the matcher expects the URL to be converted to lower case before
21 * calling {@link #pathMatchesUrl(Object, String)}.
22 */
23 boolean requiresLowerCaseUrl();
24 }