Class HomeController

java.lang.Object
org.ff4j.web.controller.AbstractController
org.ff4j.web.controller.HomeController

public class HomeController extends AbstractController
Controller for main class
Author:
Cedrick LUNVEN (@clunven)
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
      Logger for this class.
    • MULTIPART_FORM_DATA

      public static final String MULTIPART_FORM_DATA
      See Also:
  • Constructor Details

    • HomeController

      public HomeController(FF4j ff4j, org.thymeleaf.TemplateEngine te)
  • 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:
      post in class AbstractController
      Parameters:
      req - current http request
      res - 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:
      get in class AbstractController
      Parameters:
      req - current http request
      res - current http response
      Throws:
      Exception