/** * Returns <code>true</code> if the incoming <code>request</code> matches the specified <code>path</code> pattern, * <code>false</code> otherwise. * <p/> * The default implementation acquires the <code>request</code>'s path within the application and determines * if that matches: * <p/> * <code>String requestURI = {@link #getPathWithinApplication(javax.servlet.ServletRequest) getPathWithinApplication(request)};<br/> * return {@link #pathsMatch(String, String) pathsMatch(path,requestURI)}</code> * * @param path the configured url pattern to check the incoming request against. * @param request the incoming ServletRequest * @return <code>true</code> if the incoming <code>request</code> matches the specified <code>path</code> pattern, * <code>false</code> otherwise. */ protected boolean pathsMatch(String path, ServletRequest request) { String requestURI = getPathWithinApplication(request); log.trace("Attempting to match pattern '{}' with current requestURI '{}'...", path, requestURI); return pathsMatch(path, requestURI); }
if (pathsMatch(path, request)) { log.trace("Current requestURI matches pattern '{}'. Determining filter chain execution...", path); Object config = this.appliedPaths.get(path);