public UrlMappingInfo match ( String uri ) { for ( Pattern pattern : patterns ) { Matcher m = pattern . matcher ( uri ) ; if ( m . matches ( ) ) { UrlMappingInfo urlInfo = createUrlMappingInfo ( uri , m ) ; if ( urlInfo != null ) { return urlInfo ; } } } return null ; }
Matches the given URI and returns a DefaultUrlMappingInfo instance or null