etm.contrib.integration.web
Class HttpRequestPerformanceFilter

java.lang.Object
  extended by etm.contrib.integration.web.HttpRequestPerformanceFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
SoapActionPerformanceFilter, SpringHttpRequestPerformanceFilter

public class HttpRequestPerformanceFilter
extends java.lang.Object
implements javax.servlet.Filter

A Servlet Filter that spans performance monitoring around HTTP requests. Uses EtmManager.getEtmMonitor() to retrieve the currently active EtmMonitor. Therefore it is recommended to use this filter in conjunction with EtmMonitorContextListener.

Version:
$Revision: 153 $
Author:
void.fm

Field Summary
protected  EtmMonitor etmMonitor
           
protected  javax.servlet.FilterConfig filterConfig
           
 
Constructor Summary
HttpRequestPerformanceFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
protected  EtmMonitor getEtmMonitor()
           
 void init(javax.servlet.FilterConfig aFilterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

etmMonitor

protected EtmMonitor etmMonitor

filterConfig

protected javax.servlet.FilterConfig filterConfig
Constructor Detail

HttpRequestPerformanceFilter

public HttpRequestPerformanceFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig aFilterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

getEtmMonitor

protected EtmMonitor getEtmMonitor()
                            throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException


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