public abstract class AbstractInstrumentedFilter extends Object implements javax.servlet.Filter
Filter implementation which captures request information and a breakdown of the response
codes being returned.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInstrumentedFilter(String registryAttribute,
Map<Integer,String> meterNamesByStatusCode,
String otherMetricName)
Creates a new instance of the filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected AbstractInstrumentedFilter(String registryAttribute, Map<Integer,String> meterNamesByStatusCode, String otherMetricName)
registryAttribute - the attribute used to look up the metrics registry in the
servlet contextmeterNamesByStatusCode - A map, keyed by status code, of meter names that we are
interested in.otherMetricName - The name used for the catch-all meter.public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionCopyright © 2011. All rights reserved.