Class HttpPathController

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

public class HttpPathController extends Object implements Controller
Controller that check if the path match with the target path. If the path match then return the next controller result.
  • Constructor Details

    • HttpPathController

      public HttpPathController(String path)
      Constructor.
      Parameters:
      path - The target path.
  • Method Details

    • apply

      public Object apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration) throws Exception
      Apply the controller. If the path match with the target path then return the next controller result.
      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)
      Set the next controller.
      Specified by:
      setNextStep in interface Controller
      Parameters:
      controller - the next controller.