Class TomcatServer.DefaultHandler

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.tinystruct.system.TomcatServer.DefaultHandler
All Implemented Interfaces:
jakarta.servlet.Filter, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, Runnable, org.tinystruct.system.Bootstrap
Enclosing class:
TomcatServer

public static class TomcatServer.DefaultHandler extends jakarta.servlet.http.HttpServlet implements org.tinystruct.system.Bootstrap, jakarta.servlet.Filter
DefaultHandler is responsible for handling HTTP requests and managing the application's lifecycle.
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    void
    init(jakarta.servlet.FilterConfig config)
     
    void
    init(jakarta.servlet.ServletConfig config)
     
    void
    run()
     
    void
    service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
     
    void
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, 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
  • Constructor Details

    • DefaultHandler

      public DefaultHandler()
  • Method Details

    • init

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

      public void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • service

      public void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException
    • start

      public void start() throws org.tinystruct.ApplicationException
      Specified by:
      start in interface org.tinystruct.system.Bootstrap
      Throws:
      org.tinystruct.ApplicationException
    • stop

      public void stop()
      Specified by:
      stop in interface org.tinystruct.system.Bootstrap
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

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

      public void run()
      Specified by:
      run in interface Runnable