src/main/java/io/netty/handler/codec/http/router/Router.java
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;
    }
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;
    }
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.

<p>Placeholders in the path pattern will be filled with the params.
The params can be a map of {@code placeholder name -> value}
or ordered values.

<p>If a param doesn't have a corresponding placeholder, it will be put
to the query part of the result URI.

@return {@code null} if there's no match
Given a target and params this method tries to do the reverse routing and returns the URI .