public class MonitoringHandlerInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
<mvc:interceptors>
    <bean class="org.javasimon.spring.webmvc.MonitoringHandlerInterceptor"/>
 </mvc:interceptors>
 | Constructor and Description | 
|---|
MonitoringHandlerInterceptor()
Default constructor: default stopwatch source, default manager. 
 | 
MonitoringHandlerInterceptor(Manager manager)
Constructor with simon manager and default stopwatch source. 
 | 
MonitoringHandlerInterceptor(StopwatchSource<HandlerLocation> stopwatchSource)
Constructor with stopwatch source. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterCompletion(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              Object handler,
                              Exception ex)
Invoked after view. 
 | 
void | 
postHandle(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response,
                    Object handler,
                    org.springframework.web.servlet.ModelAndView modelAndView)
Invoked between controller and view. 
 | 
boolean | 
preHandle(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  Object handler)
Invoked before controller. 
 | 
protected Split | 
startStopwatch(HandlerLocation location)
Start stopwatch for given name and thread. 
 | 
protected Split | 
stopStopwatch()
Stop current thread stopwatch (if any). 
 | 
public MonitoringHandlerInterceptor(StopwatchSource<HandlerLocation> stopwatchSource)
stopwatchSource - Stopwatch sourcepublic MonitoringHandlerInterceptor(Manager manager)
manager - Manager managerpublic MonitoringHandlerInterceptor()
protected final Split startStopwatch(HandlerLocation location)
protected final Split stopStopwatch()
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpublic void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
postHandle in interface org.springframework.web.servlet.HandlerInterceptorpublic void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex)
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptorCopyright © 2019. All rights reserved.