Class StaticResourceController

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

public class StaticResourceController extends AbstractController
Load static resource and create response, overriding content type.
Author:
Cedrick LUNVEN (@clunven)
  • Constructor Details

    • StaticResourceController

      public StaticResourceController(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 IOException
      Create view from template.
      Specified by:
      post in class AbstractController
      Parameters:
      req - current http request
      res - current http response
      Throws:
      IOException - target error
    • get

      public void get(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.thymeleaf.context.WebContext ctx) throws IOException
      Create view from template.
      Specified by:
      get in class AbstractController
      Parameters:
      req - current http request
      res - current http response
      Throws:
      IOException - target error