protected boolean pathsMatch(String pattern, String path) {
        boolean matches = pathMatcher.matches(pattern, path);
        LOGGER.trace("Pattern [{}] matches path [{}] => [{}]", pattern, path, matches);
        return matches;
    }
Returns <code>true</code> if the <code>path</code> matches the specified <code>pattern</code> string,
<code>false</code> otherwise.
<p/>
Simply delegates to
<b><code>this.pathMatcher.{@link PatternMatcher#matches(String, String) matches(pattern,path)}</code></b>,
but can be overridden by subclasses for custom matching behavior.

@param pattern the pattern to match against
@param path    the value to match with the specified <code>pattern</code>
@return <code>true</code> if the <code>path</code> matches the specified <code>pattern</code> string,
<code>false</code> otherwise.
web/src/main/java/org/apache/shiro/web/filter/PathMatchingFilter.java