Package org.ff4j.web
Class FF4jServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.ff4j.web.FF4jServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
FF4jDispatcherServlet
public class FF4jServlet
extends jakarta.servlet.http.HttpServlet
Servlet initialisation to put FF4J in HTTP Session.
- Author:
- Cedrick LUNVEN
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanChabe behaviour in the user interface.protected booleanChabe behaviour in the user interface.protected FF4jinstance of ff4j.protected FF4jProviderinitializing ff4j provider.static final org.slf4j.LoggerLogger for this class.protected static Map<String, AbstractController> Mapping PATH invalid input: '<'=> Controllerprotected OperationsControllerSimple Operation.protected StaticResourceControllerStatic resource controller.protected org.thymeleaf.TemplateEngineTemplate engine.Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFf4j()Getter accessor for attribute 'ff4j'.voidinit(jakarta.servlet.ServletConfig servletConfig) Servlet initialization, init FF4J from "ff4jProvider" attribute Name.voidsetAskConfirmationBeforeDeleting(boolean askConfirmationBeforeDeleting) Setter accessor for attribute 'askConfirmationBeforeDeleting'.voidsetAskConfirmationBeforeToggling(boolean askConfirmationBeforeToggling) Setter accessor for attribute 'askConfirmationBeforeToggling'.voidSetter accessor for attribute 'ff4j'.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERLogger for this class. -
ff4j
instance of ff4j. -
ff4jProvider
initializing ff4j provider. -
askConfirmationBeforeDeleting
protected boolean askConfirmationBeforeDeletingChabe behaviour in the user interface. -
askConfirmationBeforeToggling
protected boolean askConfirmationBeforeTogglingChabe behaviour in the user interface. -
templateEngine
protected org.thymeleaf.TemplateEngine templateEngineTemplate engine. -
staticResourceController
Static resource controller. -
operationsController
Simple Operation. -
mapOfControllers
Mapping PATH invalid input: '<'=> Controller
-
-
Constructor Details
-
FF4jServlet
public FF4jServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig servletConfig) throws jakarta.servlet.ServletException Servlet initialization, init FF4J from "ff4jProvider" attribute Name.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Parameters:
servletConfig- currentServletConfigcontext- Throws:
jakarta.servlet.ServletException- error during servlet initialization
-
getFf4j
Getter accessor for attribute 'ff4j'.- Returns:
- current value of 'ff4j'
-
setFf4j
Setter accessor for attribute 'ff4j'.- Parameters:
ff4j- new value for 'ff4j '
-
setAskConfirmationBeforeDeleting
public void setAskConfirmationBeforeDeleting(boolean askConfirmationBeforeDeleting) Setter accessor for attribute 'askConfirmationBeforeDeleting'.- Parameters:
askConfirmationBeforeDeleting- new value for 'askConfirmationBeforeDeleting '
-
setAskConfirmationBeforeToggling
public void setAskConfirmationBeforeToggling(boolean askConfirmationBeforeToggling) Setter accessor for attribute 'askConfirmationBeforeToggling'.- Parameters:
askConfirmationBeforeToggling- new value for 'askConfirmationBeforeToggling '
-