Package com.yammer.metrics.web

Examples of com.yammer.metrics.web.DefaultWebappMetricsFilter


    private void initMetricsServlet(ServletContext servletContext, EnumSet<DispatcherType> disps, ServletRegistration.Dynamic dispatcherServlet) {
        log.debug("Setting Metrics profile for the Web ApplicationContext");

        log.debug("Registering Metrics Filter");
        FilterRegistration.Dynamic metricsFilter = servletContext.addFilter("webappMetricsFilter",
                new DefaultWebappMetricsFilter());
        metricsFilter.addMappingForUrlPatterns(disps, true, "/*");

        log.debug("Registering Metrics Admin Servlet");
        ServletRegistration.Dynamic metricsAdminServlet =
                servletContext.addServlet("metricsAdminServlet", new AdminServlet());
View Full Code Here

TOP

Related Classes of com.yammer.metrics.web.DefaultWebappMetricsFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.