public UrlMappingInfo match(String uri) {
        UrlMappingInfo info = cachedMatches.getIfPresent(uri);
        if (info != null) {
            return info;
        }

        for (UrlMapping mapping : mappings) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Attempting to match URI [" + uri + "] with pattern [" + mapping.getUrlData().getUrlPattern() + "]");
            }

            info = mapping.match(uri);
            if (info != null) {
                cachedMatches.put(uri, info);
                break;
            }
        }

        return info;
    }
public UrlMappingInfo match ( String uri ) { UrlMappingInfo info = cachedMatches . getIfPresent ( uri ) ; if ( info != null ) { return info ; } for ( UrlMapping mapping : mappings ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Attempting to match URI [" + uri + "] with pattern [" + mapping . getUrlData ( ) . getUrlPattern ( ) + "]" ) ; } info = mapping . match ( uri ) ; if ( info != null ) { cachedMatches . put ( uri , info ) ; break ; } } return info ; }
@see grails.web.mapping.UrlMappingsHolder#match(String)