net.java.dev.moskito.webui
Class MoskitoUIServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.struts.action.ActionServlet
              extended by net.java.dev.moskito.webui.MoskitoUIServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, IStatsProducer

public class MoskitoUIServlet
extends ActionServlet
implements IStatsProducer

See Also:
Serialized Form

Field Summary
private  List<ServletStats> cachedStatList
           
private  ServletStats cumulatedStats
           
private  ServletStats getStats
           
private  ServletStats postStats
           
 
Fields inherited from class org.apache.struts.action.ActionServlet
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName
 
Constructor Summary
MoskitoUIServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
           
 void doPost(HttpServletRequest req, HttpServletResponse res)
           
 String getCategory()
           
protected  long getLastModified(HttpServletRequest req)
           
protected  Interval[] getMonitoringIntervals()
          Override this method to setup custom monitoring intervals.
 String getProducerId()
           
 List getStats()
           
 String getSubsystem()
           
 void init(ServletConfig config)
           
protected  boolean operationAllowed(HttpServletRequest req, HttpServletResponse res)
          Override this operation to perform access control to moskitoUI.
 
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 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

getStats

private ServletStats getStats

postStats

private ServletStats postStats

cumulatedStats

private ServletStats cumulatedStats

cachedStatList

private List<ServletStats> cachedStatList
Constructor Detail

MoskitoUIServlet

public MoskitoUIServlet()
Method Detail

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 HttpServletRequest
res - 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