public boolean matches(String pattern, String source) {
        return match(pattern, source);
    }
Checks if {@code path} is a pattern (i.e. contains a '*', or '?').
For example the {@code /foo/**} would return {@code true}, while {@code /bar/} would return {@code false}.

@param path the string to check
@return this method returns {@code true} if {@code path} contains a '*' or '?', otherwise, {@code false}
core/src/main/java/org/apache/shiro/util/AntPathMatcher.java