Package org.ff4j.web.controller
Class HomeController
java.lang.Object
org.ff4j.web.controller.AbstractController
org.ff4j.web.controller.HomeController
Controller for main class
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLogger for this class.static final StringFields inherited from class org.ff4j.web.controller.AbstractController
ADMIN_GROUPS, ff4j, KEY_TITLE, SDF, SDFSLOT, successView, templateEngine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.thymeleaf.context.WebContext ctx) Create view from template.voidpost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.thymeleaf.context.WebContext ctx) Create view from template.Methods inherited from class org.ff4j.web.controller.AbstractController
buildQuery, get, getFf4j, getSuccessView, getTemplateEngine, isValidParam, parseQuery, post, setFf4j, setSuccessView, setTemplateEngine
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERLogger for this class. -
MULTIPART_FORM_DATA
- See Also:
-
-
Constructor Details
-
HomeController
-
-
Method Details
-
post
public void post(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.thymeleaf.context.WebContext ctx) throws Exception Create view from template.- Specified by:
postin classAbstractController- Parameters:
req- current http requestres- current http response- Throws:
Exception
-
get
public void get(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.thymeleaf.context.WebContext ctx) throws Exception Create view from template.- Specified by:
getin classAbstractController- Parameters:
req- current http requestres- current http response- Throws:
Exception
-