Package ninja

Class ReverseRouter

    • Constructor Detail

    • Method Detail

      • with

        public ReverseRouter.Builder with​(Class<?> controllerClass,
                                          String methodName)
        Retrieves a the reverse route for this controllerClass and method.
        Parameters:
        controllerClass - The controllerClass e.g. ApplicationController.class
        methodName - the methodName of the class e.g. "index"
        Returns:
        A Builder allowing setting path placeholders and queryParam string parameters.
      • with

        public ReverseRouter.Builder with​(MethodReference methodRef)
        Retrieves a the reverse route for the method reference (e.g. controller class and method name).
        Parameters:
        methodRef - The reference to a method
        Returns:
        A Builder allowing setting path placeholders and queryParam string parameters.