protected boolean requiresAuthentication ( HttpServletRequest request , HttpServletResponse response , FilterChain filterChain ) { //copied from org.springframework.security.ui.AbstractProcessingFilter.requiresAuthentication String uri = request . getRequestURI ( ) ; int pathParamIndex = uri . indexOf ( ' ' ) ; if ( pathParamIndex > 0 ) { // strip everything after the first semi-colon uri = uri . substring ( 0 , pathParamIndex ) ; } if ( "" . equals ( request . getContextPath ( ) ) ) { return uri . endsWith ( filterProcessesUrl ) ; } boolean match = uri . endsWith ( request . getContextPath ( ) + filterProcessesUrl ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( uri + ( match ? " matches " : " does not match " ) + filterProcessesUrl ) ; } return match ; }
Whether this filter is configured to process the specified request .