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

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    findOrCreateHttpSession(jakarta.servlet.http.HttpServletRequest request)
    Lookup an existing or a new session for the request given.
    protected BeetRootService
    Get the beetRoot service.
    void
    init(jakarta.servlet.ServletConfig config)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • AbstractBeetRootServlet

      public AbstractBeetRootServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet
    • getBeetRootService

      protected BeetRootService getBeetRootService()
      Get the beetRoot service.
      Returns:
      beetRoot service
    • 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