This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/master by this push:
new 6103d867b9 FELIX-6626 : Support jakarta servlet registration
6103d867b9 is described below
commit 6103d867b94c632a4e1235b8324689483a11341d
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Tue Aug 22 13:57:26 2023 +0200
FELIX-6626 : Support jakarta servlet registration
---
.../org/apache/felix/webconsole/servlet/AbstractServlet.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git
a/webconsole/src/main/java/org/apache/felix/webconsole/servlet/AbstractServlet.java
b/webconsole/src/main/java/org/apache/felix/webconsole/servlet/AbstractServlet.java
index bd3744d107..23f2f3f88b 100644
---
a/webconsole/src/main/java/org/apache/felix/webconsole/servlet/AbstractServlet.java
+++
b/webconsole/src/main/java/org/apache/felix/webconsole/servlet/AbstractServlet.java
@@ -38,10 +38,19 @@ import jakarta.servlet.http.HttpServletResponse;
* This class can be used as a base class for a web console plugin.
* The plugin (servlet) needs to be registered as a servlet service
* with at least the label property.
+ * <p>
+ * Extending this servlet is one way of providing a plugin. The other
+ * is to simply direclty implement the servlet interface. In both cases
+ * requests to resources with a path of "LABEL/res/*" are automatically
+ * handled.
+ * <p>
+ * For html (content) requests, the web console automatically draws the header,
+ * footer and navigation.
*
* @see ServletConstants#PLUGIN_LABEL
* @see ServletConstants#PLUGIN_TITLE
* @see ServletConstants#PLUGIN_CATEGORY
+ * @see ServletConstants#PLUGIN_CSS_REFERENCES
*/
public abstract class AbstractServlet extends HttpServlet {