etm.contrib.integration.spring.web
Class SpringHttpRequestPerformanceFilter

java.lang.Object
  extended by etm.contrib.integration.web.HttpRequestPerformanceFilter
      extended by etm.contrib.integration.spring.web.SpringHttpRequestPerformanceFilter
All Implemented Interfaces:
javax.servlet.Filter

public class SpringHttpRequestPerformanceFilter
extends HttpRequestPerformanceFilter

A Servlet Filter that spans performance monitoring around HTTP requests for spring managed EtmMonitor instances. The filter requires the existence of an Spring WebApplicationContext that was created through a Spring ContextLoaderListener or ContextLoaderServlet (It should be possible to locate the WebApplicationContext with WebApplicationContextUtils.getRequiredWebApplicationContext()).

Usually the filter is able to locate the EtmMonitor automatically, however if you have more than one EtmMonitor instance you need specify the monitor bean name as specified in your spring configuration. Therefore add the filter init parameter called etmMonitorName holding its name.

Example:

 <filter>
   <filter-name>requestPerformanceFilter</filter-name>
   <filter-class>etm.contrib.integration.spring.web.SpringHttpRequestPerformanceFilter</filter-class>
   <init-param>
     <param-name>etmMonitorName</param-name>
     <param-value>lala</param-value>
   </init-param>
 </filter>
 

Since:
1.2.0
Version:
$Revision: 59 $
Author:
void.fm

Field Summary
 
Fields inherited from class etm.contrib.integration.web.HttpRequestPerformanceFilter
etmMonitor, filterConfig
 
Constructor Summary
SpringHttpRequestPerformanceFilter()
           
 
Method Summary
protected  EtmMonitor getEtmMonitor()
           
 
Methods inherited from class etm.contrib.integration.web.HttpRequestPerformanceFilter
destroy, doFilter, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringHttpRequestPerformanceFilter

public SpringHttpRequestPerformanceFilter()
Method Detail

getEtmMonitor

protected EtmMonitor getEtmMonitor()
                            throws javax.servlet.ServletException
Overrides:
getEtmMonitor in class HttpRequestPerformanceFilter
Throws:
javax.servlet.ServletException


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.