Class ModuloController

java.lang.Object
com.chillycheesy.modulo.controllers.ModuloController
All Implemented Interfaces:
Controller

public class ModuloController extends Object implements Controller
Controller that represent a root Controller.
  • Field Details

    • name

      protected String name
    • priority

      protected int priority
    • controller

      protected Controller controller
  • Constructor Details

    • ModuloController

      public ModuloController(String name, int priority)
    • ModuloController

      public ModuloController(String name)
  • Method Details

    • apply

      public Object apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration) throws Exception
      Description copied from interface: Controller
      Call the method that handles the request.
      Specified by:
      apply in interface Controller
      Parameters:
      request - the http request.
      response - the http response.
      configuration - the configuration.
      Returns:
      the response.
      Throws:
      Exception
    • setNextStep

      public void setNextStep(Controller controller)
      Description copied from interface: Controller
      Set the next controller.
      Specified by:
      setNextStep in interface Controller
      Parameters:
      controller - The next controller.
    • getName

      public String getName()
    • getPriority

      public int getPriority()
    • getController

      public Controller getController()
    • setName

      public void setName(String name)
    • setPriority

      public void setPriority(int priority)