public boolean isPattern(String path) {
        if (path == null) {
            return false;
        }
        return (path.indexOf('*') != -1 || path.indexOf('?') != -1);
    }
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