Class BaseRouter.Handler

java.lang.Object
com.atlassian.plugin.webresource.impl.support.http.BaseRouter.Handler
Enclosing class:
BaseRouter<Controller extends BaseController>

public abstract class BaseRouter.Handler extends Object
Handler for routes.
  • Constructor Details

    • Handler

      public Handler()
  • Method Details

    • apply

      public void apply(Controller controller)
      Would be called for route if the route has zero parameters.
    • apply

      public void apply(Controller controller, String arg)
      Would be called for route if the route has one parameters.
    • apply

      public void apply(Controller controller, String arg1, String arg2)
      Would be called for route if the route has two parameters.
    • apply

      public void apply(Controller controller, String arg1, String arg2, String arg3)
      Would be called for route if the route has three parameters.
    • apply

      public void apply(Request request, Response response, Controller controller, String[] arguments)
      Always called, used in case when route have more than three arguments or need access to request.