public boolean match ( String accessPath ) { if ( extension != null ) { for ( int i = accessPath . length ( ) - 1 ; i >= 0 ; i -- ) { if ( accessPath . charAt ( i ) == ' ' ) { String ext = accessPath . substring ( i + 1 ) ; if ( extension . equals ( ext ) ) { return true ; } break ; } } } if ( accessPath . equals ( path ) ) { return true ; } if ( prefix != null && accessPath . startsWith ( prefix ) ) { return true ; } return false ; }
Checks for a match .