Class HttpControllerGroup

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.john.amiscaray.quak.web.servlet.HttpControllerGroup
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class HttpControllerGroup extends jakarta.servlet.http.HttpServlet
Groups related HTTP controllers into a single servlet. Quak framework will group controllers with common path prefixes.
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
    addController(String urlPattern, HttpController controller)
    Adds a controller to this group.
    void
    service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

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

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, 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

    • HttpControllerGroup

      public HttpControllerGroup()
  • Method Details

    • addController

      public void addController(String urlPattern, HttpController controller)
      Adds a controller to this group.
      Parameters:
      urlPattern - The parent path.
      controller - The http controller to add.
    • service

      public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException