protected boolean included ( String url ) { for ( final Pattern urlPattern : this . includedUrls ) { final Matcher matcher = urlPattern . matcher ( url ) ; if ( matcher . matches ( ) ) { if ( this . logger . isDebugEnabled ( ) ) { this . logger . debug ( "Include pattern " + urlPattern . pattern ( ) + " matches " + url ) ; } return true ; } } return false ; }
Check if the URL matches one of the configured include patterns