Class AbstractBeetRootServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ch.autumo.beetroot.AbstractBeetRootServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
- Direct Known Subclasses:
BeetRootServlet
public class AbstractBeetRootServlet
extends jakarta.servlet.http.HttpServlet
Base beetRoot servlet.
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected BeetRootHTTPSessionfindOrCreateHttpSession(jakarta.servlet.http.HttpServletRequest request) Lookup an existing or a new session for the request given.protected BeetRootServiceGet the beetRoot service.voidinit(jakarta.servlet.ServletConfig config) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger.
-
-
Constructor Details
-
AbstractBeetRootServlet
public AbstractBeetRootServlet()Default constructor.
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-
getBeetRootService
-
findOrCreateHttpSession
protected BeetRootHTTPSession findOrCreateHttpSession(jakarta.servlet.http.HttpServletRequest request) throws IOException Lookup an existing or a new session for the request given.- Parameters:
request- servlet request- Returns:
- beetRoot session
- Throws:
IOException- IO Exception
-