|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.setup.MonitorHTTPServletFilter
The HTTP Servlet Filter which enables/disables monitoring for a given HTTP request. This enabling/disabling
works in conjunction with other switches available in MonitorConfig class.
It works by calling the MonitorConfig.enableMonitoringForCurrentThread(boolean) method
ServletMonitorFilter implementation.
as an initialization parameter. This ServletMonitorFilter implementation can specify if monitoring should be
set ON/OFF for a request. The typical use of this is enable monitoring on for a given user-login.
.* If no monitorFilter parameter is specified, all requests will be unmonitored.InfraREDFilter net.sf.infrared.agent.setup.MonitorHTTPServletFilter monitorFilter your.ServletMonitorFilter.Implementation
| Constructor Summary | |
MonitorHTTPServletFilter()
|
|
| Method Summary | |
static void |
applyFilter(boolean isFilterToBeApplied)
Sets whether filter needs to be applied or not. |
void |
destroy()
Discards this HTTP Servlet Filter instance |
void |
doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
Performs the action of the HTTP Servlet Filter. |
static String |
getFilterName()
|
void |
init(FilterConfig filterConfig)
Initializes this HTTP Servlet filter instance. |
static boolean |
isFilterToBeApplied()
Checks if a filter needs to be applied. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MonitorHTTPServletFilter()
| Method Detail |
public void init(FilterConfig filterConfig)
throws ServletException
init in interface FilterfilterConfig -
ServletExceptionpublic void destroy()
destroy in interface Filter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
throws IOException,
ServletException
doFilter in interface FilterservletRequest - servletResponse - filterChain -
IOException
ServletExceptionpublic static boolean isFilterToBeApplied()
public static void applyFilter(boolean isFilterToBeApplied)
isFilterToBeApplied - public static String getFilterName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||