net.bull.javamelody
Class MonitoringFilter
java.lang.Object
net.bull.javamelody.MonitoringFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- JiraMonitoringFilter
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonitoringFilter
public MonitoringFilter()
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-2010 Emeric Vernat. All Rights Reserved.