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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddController(String urlPattern, HttpController controller) Adds a controller to this group.voidservice(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, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
HttpControllerGroup
public HttpControllerGroup()
-
-
Method Details
-
addController
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:
servicein classjakarta.servlet.http.HttpServlet- Throws:
IOException
-