public boolean matchStart(String pattern, String path) { return doMatch(pattern, path, false, null); }
public boolean match(String pattern, String path) { return doMatch(pattern, path, true, null); }
public Map<String, String> extractUriTemplateVariables(String pattern, String path) { Map<String, String> variables = new LinkedHashMap<String, String>(); boolean result = doMatch(pattern, path, true, variables); Assert.isTrue(result, "Pattern \"" + pattern + "\" is not a match for \"" + path + "\""); return variables; }