Class HttpMethodController
java.lang.Object
com.chillycheesy.modulo.controllers.HttpMethodController
- All Implemented Interfaces:
Controller
Controller that test the http methods.
Check if the method match with the target method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration)Apply the controller.voidsetNextStep(Controller controller)Set the next controller.
-
Constructor Details
-
HttpMethodController
Constructor.- Parameters:
method- the target method.
-
-
Method Details
-
apply
public Object apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration) throws ExceptionApply the controller. If the method match with the target method then return the next controller result.- Specified by:
applyin 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:
setNextStepin interfaceController- Parameters:
controller- the next controller.
-