Class MonitoringHandler
- java.lang.Object
-
- org.appng.core.controller.handler.MonitoringHandler
-
- All Implemented Interfaces:
RequestHandler
public class MonitoringHandler extends Object implements RequestHandler
ARequestHandler
that exposes some health information for the site.Supports the following operations:
/health
Shows theSite
's status, including itsApplication
s andProperties
./health/system
Shows the system's properties as returned bySystem.getProperties()
./health
/environment
Shows the system's environment as returned bySystem.getenv()
./health/platform
Shows a list of all JAR files used by the platform./health/jars
Shows a list of all JAR files used bySite
sSiteClassLoader
.
- Author:
- Matthias Müller
- See Also:
Platform.Property.MONITORING_PATH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MonitoringHandler.ApplicationInfo
static class
MonitoringHandler.Connection
static class
MonitoringHandler.Jar
static class
MonitoringHandler.SiteInfo
-
Field Summary
-
Fields inherited from interface org.appng.core.controller.handler.RequestHandler
FORWARDED
-
-
Constructor Summary
Constructors Constructor Description MonitoringHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, Environment env, Site site, PathInfo pathInfo)
Handles the givenHttpServletRequest
,
-
-
-
Method Detail
-
handle
public void handle(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, Environment env, Site site, PathInfo pathInfo) throws javax.servlet.ServletException, IOException
Description copied from interface:RequestHandler
Handles the givenHttpServletRequest
,- Specified by:
handle
in interfaceRequestHandler
- Parameters:
servletRequest
- the currentHttpServletRequest
servletResponse
- the currentHttpServletResponse
env
- the currentEnvironment
site
- the currentSite
pathInfo
- the currentPathInfo
- Throws:
javax.servlet.ServletException
- if a servlet-specific error occursIOException
- if a resource could not be found
-
-