private boolean satisfiesAnyPath ( IgnoredResourcesConfig config , String destination , String verb ) { if ( destination == null || destination . trim ( ) . length ( ) == 0 ) { destination = "/" ; //$NON-NLS-1$ } for ( IgnoredResource resource : config . getRules ( ) ) { String resourceVerb = resource . getVerb ( ) ; boolean verbMatches = verb == null || IgnoredResource . VERB_MATCH_ALL . equals ( resourceVerb ) || verb . equalsIgnoreCase ( resourceVerb ) ; // $NON-NLS-1$ boolean destinationMatches = destination . matches ( resource . getPathPattern ( ) ) ; if ( verbMatches && destinationMatches ) { return true ; } } return false ; }
Evaluates whether the destination provided matches any of the configured rules