net.java.dev.moskito.web
Class MoskitoFilter

java.lang.Object
  extended by net.java.dev.moskito.web.MoskitoFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
DomainFilter, RefererFilter, RequestURIFilter, UserAgentFilter

public abstract class MoskitoFilter
extends Object
implements Filter


Field Summary
static String INIT_PARAM_LIMIT
           
protected  org.apache.log4j.Logger log
           
private  OnDemandStatsProducer onDemandProducer
           
 
Constructor Summary
MoskitoFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
protected abstract  String extractCaseName(ServletRequest req, ServletResponse res)
           
 String getCategory()
           
protected  Interval[] getMonitoringIntervals()
           
 String getProducerId()
          Returns the producer id.
 String getSubsystem()
           
 void init(FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.log4j.Logger log

INIT_PARAM_LIMIT

public static final String INIT_PARAM_LIMIT
See Also:
Constant Field Values

onDemandProducer

private OnDemandStatsProducer onDemandProducer
Constructor Detail

MoskitoFilter

public MoskitoFilter()
Method Detail

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

init

public void init(FilterConfig config)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

extractCaseName

protected abstract String extractCaseName(ServletRequest req,
                                          ServletResponse res)

getProducerId

public String getProducerId()
Returns the producer id. Override this method if you want a useful name in your logs. Default is class name.


getCategory

public String getCategory()

getSubsystem

public String getSubsystem()

getMonitoringIntervals

protected Interval[] getMonitoringIntervals()


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework