Class HttpPathController
java.lang.Object
com.chillycheesy.modulo.controllers.HttpPathController
- All Implemented Interfaces:
Controller
Controller that check if the path match with the target path.
If the path match then return the next controller result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration)
Apply the controller.void
setNextStep(Controller controller)
Set the next controller.
-
Constructor Details
-
HttpPathController
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 ExceptionApply the controller. If the path match with the target path then return the next controller result.- Specified by:
apply
in interfaceController
- Parameters:
request
- the http request.response
- the http response.configuration
- the configuration.- Returns:
- the response.
- Throws:
Exception
-
setNextStep
Set the next controller.- Specified by:
setNextStep
in interfaceController
- Parameters:
controller
- the next controller.
-