Class ServletApplication

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.rapidcontext.app.ServletApplication
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletApplication extends javax.servlet.http.HttpServlet
The main application servlet. This servlet handles all incoming web requests.
Version:
1.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Path
    The documentation storage path.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new application servlet instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Uninitializes this servlet.
    void
    Initializes this servlet.
    protected void
    service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
    Processes a servlet request.

    Methods inherited from class javax.servlet.http.HttpServlet

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

    Methods inherited from class javax.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

    • DOC_PATH

      public static final Path DOC_PATH
      The documentation storage path.
  • Constructor Details

    • ServletApplication

      public ServletApplication()
      Creates a new application servlet instance.
  • Method Details

    • init

      public void init() throws javax.servlet.ServletException
      Initializes this servlet.
      Overrides:
      init in class javax.servlet.GenericServlet
      Throws:
      javax.servlet.ServletException - if the initialization failed
    • destroy

      public void destroy()
      Uninitializes this servlet.
      Specified by:
      destroy in interface javax.servlet.Servlet
      Overrides:
      destroy in class javax.servlet.GenericServlet
    • service

      protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Processes a servlet request.
      Overrides:
      service in class javax.servlet.http.HttpServlet
      Parameters:
      req - the servlet request
      resp - the servlet response
      Throws:
      javax.servlet.ServletException - if an internal error occurred when processing the request
      IOException - if an IO error occurred when processing the request