Class InstrumentedFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class InstrumentedFilter
    extends AbstractInstrumentedFilter
    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 Detail

      • REGISTRY_ATTRIBUTE

        public static final String REGISTRY_ATTRIBUTE
    • Constructor Detail

      • InstrumentedFilter

        public InstrumentedFilter()
        Creates a new instance of the filter.