1 16 17 package org.springframework.web.servlet.handler; 18 19 import javax.servlet.http.HttpServletRequest ; 20 import javax.servlet.http.HttpServletResponse ; 21 22 import org.springframework.web.servlet.HandlerInterceptor; 23 import org.springframework.web.servlet.ModelAndView; 24 25 32 public abstract class HandlerInterceptorAdapter implements HandlerInterceptor { 33 34 37 public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) 38 throws Exception { 39 return true; 40 } 41 42 45 public void postHandle( 46 HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) 47 throws Exception { 48 } 49 50 53 public void afterCompletion( 54 HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) 55 throws Exception { 56 } 57 58 } 59 | Popular Tags |