@SuppressWarnings("UnusedParameters")
    /**
     * Path-matching version of the parent class's
     * {@link #isEnabled(javax.servlet.ServletRequest, javax.servlet.ServletResponse)} method, but additionally allows
     * for inspection of any path-specific configuration values corresponding to the specified request.  Subclasses
     * may wish to inspect this additional mapped configuration to determine if the filter is enabled or not.
     * <p/>
     * This method's default implementation ignores the {@code path} and {@code mappedValue} arguments and merely
     * returns the value from a call to {@link #isEnabled(javax.servlet.ServletRequest, javax.servlet.ServletResponse)}.
     * It is expected that subclasses override this method if they need to perform enable/disable logic for a specific
     * request based on any path-specific config for the filter instance.
     *
     * @param request     the incoming servlet request
     * @param response    the outbound servlet response
     * @param path        the path matched for the incoming servlet request
     *                    that has been configured with the given {@code mappedValue}.
     * @param mappedValue the filter-specific config value mapped to
     *                    this filter in the URL rules mappings for the given {@code path}.
     * @return {@code true} if this filter should filter the specified request, {@code false} if it should let the
     * request/response pass through immediately to the next element in the {@code FilterChain}.
     * @throws Exception in the case of any error
     * @since 1.2
     */
    protected boolean isEnabled(ServletRequest request, ServletResponse response, String path, Object mappedValue)
            throws Exception {
        return isEnabled(request, response);
    }
This default implementation always returns {@code true} and should be overridden by subclasses for custom
logic if necessary.

@param request     the incoming ServletRequest
@param response    the outgoing ServletResponse
@param mappedValue the filter-specific config value mapped to this filter in the URL rules mappings.
@return {@code true} if the request should be able to continue, {@code false} if the filter will
handle the response directly.
@throws Exception if an error occurs
@see #isEnabled(javax.servlet.ServletRequest, javax.servlet.ServletResponse, String, Object)
web/src/main/java/org/apache/shiro/web/filter/PathMatchingFilter.java