ServletGroup

A mutable collection of Jakarta Servlet instances mapped to URL paths.

Used by ServletService to register servlets with an embedded Jetty server. Servlets are added via addServlet and blank/empty paths are silently ignored.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addServlet(path: String, servlet: Servlet)

Registers a servlet at the given URL path. Paths that are empty or blank are silently ignored.