net.bull.javamelody
Class MonitoringFilter

java.lang.Object
  extended by net.bull.javamelody.MonitoringFilter
All Implemented Interfaces:
Filter

public class MonitoringFilter
extends Object
implements Filter

Filtre de servlet pour le monitoring. C'est la classe de ce filtre qui doit être déclarée dans le fichier web.xml de la webapp.

Author:
Emeric Vernat

Constructor Summary
MonitoringFilter()
           
 
Method Summary
 void destroy()
          
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          
protected  String getMonitoringUrl(HttpServletRequest httpRequest)
           
 void init(FilterConfig config)
          
protected  void log(HttpServletRequest httpRequest, String requestName, long duration, boolean systemError, int responseSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringFilter

public MonitoringFilter()
Method Detail

init

public void init(FilterConfig config)
          throws ServletException

Specified by:
init in interface Filter
Throws:
ServletException

destroy

public void destroy()

Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException

Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

getMonitoringUrl

protected final String getMonitoringUrl(HttpServletRequest httpRequest)

log

protected void log(HttpServletRequest httpRequest,
                   String requestName,
                   long duration,
                   boolean systemError,
                   int responseSize)


Copyright © 2008-2009 Emeric Vernat. All Rights Reserved.