Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Wouldn't it be neat if we can get to the other properties of the web server instance running in geronimo, such as the connectors/listeners and application contexts? Right now, it only exposes the statistics from the underlying HttpServer, but there's no way to get to information pertaining to the deployed connectors and contexts.
Index: JettyContainerImpl.java
===================================================================
— JettyContainerImpl.java (revision 57128)
+++ JettyContainerImpl.java (working copy)
@@ -34,6 +34,14 @@
public class JettyContainerImpl implements JettyContainer, GBeanLifecycle {
private final Server server;
+ public HttpContext[] getContexts()
{ + return server.getContexts(); + }+
+ public HttpListener[] getListeners()
+
public void resetStatistics()
@@ -177,6 +185,8 @@
infoFactory.addAttribute("requestsActiveMax", Integer.TYPE, false);
infoFactory.addAttribute("requestsDurationAve", Long.TYPE, false);
infoFactory.addAttribute("requestsDurationMax", Long.TYPE, false);
+ infoFactory.addAttribute("contexts", HttpContext[].class, false);
+ infoFactory.addAttribute("listeners", HttpListener[].class, false);
infoFactory.addOperation("resetStatistics");
infoFactory.addAttribute("requestLog", RequestLog.class, false);