Class CommandServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.CommandServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, Thread.UncaughtExceptionHandler

public class CommandServlet extends GenericServlet implements Thread.UncaughtExceptionHandler
The main command controller. This is the application's brain stem.
Since:
1.0
Version:
12.3
Author:
Luke
See Also:
  • Field Details

  • Constructor Details

    • CommandServlet

      public CommandServlet()
  • Method Details

    • getServletInfo

      public String getServletInfo()
      Specified by:
      getServletInfo in interface jakarta.servlet.Servlet
      Overrides:
      getServletInfo in class jakarta.servlet.GenericServlet
    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • destroy

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

      public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException
      POST request handler for this servlet. POST and GET requests are handled the same way.
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - the HTTP request
      rsp - the HTTP response
      Throws:
      IOException
      jakarta.servlet.ServletException
      See Also:
    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException
      GET request handler for this servlet.
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - the servlet request
      rsp - the servlet response
      Throws:
      IOException - if a network I/O error occurs
      jakarta.servlet.ServletException - if the error handler cannot forward to the error page
    • uncaughtException

      public void uncaughtException(Thread t, Throwable e)
      Specified by:
      uncaughtException in interface Thread.UncaughtExceptionHandler