public abstract class MoskitoFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_PARAM_LIMIT
Parameter name for the init parameter for the limit of dynamic case names (number of names) in the filter config.
|
protected org.slf4j.Logger |
log
Logger instance, available for all subclasses.
|
static String |
OTHER
Constant for use-cases which are over limit.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MoskitoFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
protected abstract String |
extractCaseName(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
Overwrite this to provide a name allocation mechanism to make request -> name mapping.
|
protected String |
getCategory()
Overwrite this method to register the filter in a category of your choice.
|
protected Interval[] |
getMonitoringIntervals() |
protected FilterStats |
getOtherStats() |
protected OnDemandStatsProducer<FilterStats> |
getProducer() |
String |
getProducerId()
Returns the producer id.
|
protected String |
getSubsystem()
Override this to register the filter as specially defined subsystem.
|
void |
init(javax.servlet.FilterConfig config) |
protected org.slf4j.Logger log
public static final String INIT_PARAM_LIMIT
public static final String OTHER
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterprotected abstract String extractCaseName(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
req - ServletRequest.res - ServletResponse.public String getProducerId()
protected String getCategory()
protected String getSubsystem()
protected Interval[] getMonitoringIntervals()
protected OnDemandStatsProducer<FilterStats> getProducer()
protected FilterStats getOtherStats()
Copyright © 2010-2016 anotheria.net. All Rights Reserved.