public class StatusWebHandler extends Object
| Constructor and Description | 
|---|
| StatusWebHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | doGet(javax.servlet.http.HttpServletRequest req,
     javax.servlet.http.HttpServletResponse resp)Handle a GET request. | 
| void | doPost(javax.servlet.http.HttpServletRequest req,
      javax.servlet.http.HttpServletResponse resp)Handle a POST request. | 
| String | getApplicationName() | 
| AppStatus | getAppStatus() | 
| String | getCssLocation() | 
| Map<String,IPage> | getPages() | 
| void | init()Does the initialization work. | 
| void | setAllowIp(String allowIp)Restrict access to a single IP. | 
| void | setApplicationName(String servletContextName) | 
| void | setAppStatus(AppStatus appStatus)Set the AppStatus object to use in the web interface. | 
| void | setCssLocation(String cssLocation)Set the location of the css to use. | 
| void | setPages(Map<String,IPage> pages)Set the available pages in the web interface. | 
public void doGet(javax.servlet.http.HttpServletRequest req,
         javax.servlet.http.HttpServletResponse resp)
           throws IOException
req - resp - IOExceptionpublic void doPost(javax.servlet.http.HttpServletRequest req,
          javax.servlet.http.HttpServletResponse resp)
            throws IOException
req - resp - IOExceptionpublic String getApplicationName()
public AppStatus getAppStatus()
public String getCssLocation()
public void init()
Read configuration from /status-web-conf.properties
If you need to inject custom objects using these methods, please do it before calling init.
public void setAllowIp(String allowIp)
allowIp - public void setApplicationName(String servletContextName)
public void setAppStatus(AppStatus appStatus)
appStatus - public void setCssLocation(String cssLocation)
cssLocation - Copyright © 2010–2016. All rights reserved.