net.java.dev.moskito.webui
Class MoskitoUIServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
net.java.dev.moskito.webui.MoskitoUIServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, IStatsProducer
public class MoskitoUIServlet
- extends ActionServlet
- implements IStatsProducer
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts.action.ActionServlet |
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName |
| Methods inherited from class org.apache.struts.action.ActionServlet |
addServletMapping, destroy, destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, init, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initConfigDigester, initDataSources, initInternal, initModuleConfig, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getStats
private ServletStats getStats
postStats
private ServletStats postStats
cumulatedStats
private ServletStats cumulatedStats
cachedStatList
private List<ServletStats> cachedStatList
MoskitoUIServlet
public MoskitoUIServlet()
getProducerId
public String getProducerId()
- Specified by:
getProducerId in interface IStatsProducer
getSubsystem
public String getSubsystem()
- Specified by:
getSubsystem in interface IStatsProducer
getCategory
public String getCategory()
- Specified by:
getCategory in interface IStatsProducer
init
public void init(ServletConfig config)
throws ServletException
- Specified by:
init in interface Servlet- Overrides:
init in class GenericServlet
- Throws:
ServletException
doGet
public final void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Overrides:
doGet in class ActionServlet
- Throws:
ServletException
IOException
doPost
public final void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Overrides:
doPost in class ActionServlet
- Throws:
ServletException
IOException
getLastModified
protected final long getLastModified(HttpServletRequest req)
- Overrides:
getLastModified in class HttpServlet
getStats
public List getStats()
- Specified by:
getStats in interface IStatsProducer
getMonitoringIntervals
protected Interval[] getMonitoringIntervals()
- Override this method to setup custom monitoring intervals.
- Returns:
operationAllowed
protected boolean operationAllowed(HttpServletRequest req,
HttpServletResponse res)
- Override this operation to perform access control to moskitoUI. Default is yes (true).
- Parameters:
req - the HttpServletRequestres - the HttpServletResponse
- Returns:
- true if the operation is allowed (post or get).
Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework