public String uri ( HttpMethod method , T target , Object ... params ) { MethodlessRouter < T > router = ( method == null ) ? anyMethodRouter : routers . get ( method ) ; // Fallback to anyMethodRouter if no router is found for the method if ( router == null ) { router = anyMethodRouter ; } String ret = router . uri ( target , params ) ; if ( ret != null ) { return ret ; } // Fallback to anyMethodRouter if the router was not anyMethodRouter and no path is found return ( router != anyMethodRouter ) ? anyMethodRouter . uri ( target , params ) : null ; }
Given a target and params this method tries to do the reverse routing and returns the URI .