Package com.codahale.metrics.servlet
Class InstrumentedFilter
java.lang.Object
com.codahale.metrics.servlet.AbstractInstrumentedFilter
com.codahale.metrics.servlet.InstrumentedFilter
- All Implemented Interfaces:
javax.servlet.Filter
Implementation of the
AbstractInstrumentedFilter
which provides a default set of response codes
to capture information about. Use it in your servlet.xml like this:
<filter>
<filter-name>instrumentedFilter</filter-name>
<filter-class>com.codahale.metrics.servlet.InstrumentedFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>instrumentedFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.codahale.metrics.servlet.AbstractInstrumentedFilter
destroy, doFilter, init
-
Field Details
-
REGISTRY_ATTRIBUTE
-
NAME_PREFIX
- See Also:
-
OK
private static final int OK- See Also:
-
CREATED
private static final int CREATED- See Also:
-
NO_CONTENT
private static final int NO_CONTENT- See Also:
-
BAD_REQUEST
private static final int BAD_REQUEST- See Also:
-
NOT_FOUND
private static final int NOT_FOUND- See Also:
-
SERVER_ERROR
private static final int SERVER_ERROR- See Also:
-
-
Constructor Details
-
InstrumentedFilter
public InstrumentedFilter()Creates a new instance of the filter.
-
-
Method Details
-
createMeterNamesByStatusCode
-