Exemplo n.º 1
0
 @Override
 public void postHandle(
     HttpServletRequest request,
     HttpServletResponse response,
     Object handler,
     ModelAndView modelAndView)
     throws Exception {
   System.out.println("ProjectPublishInterceptor:postHandle");
   super.postHandle(request, response, handler, modelAndView);
 }
Exemplo n.º 2
0
 @Override
 public void postHandle(
     HttpServletRequest request,
     HttpServletResponse response,
     Object handler,
     ModelAndView modelAndView)
     throws Exception {
   System.out.println(this.getClass().getSimpleName() + "---postHandle()...");
   super.postHandle(request, response, handler, modelAndView);
 }
  /*
   * (non-Javadoc)
   * @see org.springframework.web.servlet.handler.HandlerInterceptorAdapter#postHandle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, org.springframework.web.servlet.ModelAndView)
   */
  @Override
  public void postHandle(
      HttpServletRequest request,
      HttpServletResponse response,
      Object handler,
      ModelAndView modelAndView)
      throws Exception {

    super.postHandle(request, response, handler, modelAndView);
  }
Exemplo n.º 4
0
 @Override
 public void postHandle(
     HttpServletRequest request,
     HttpServletResponse response,
     Object handler,
     ModelAndView modelAndView)
     throws Exception {
   logger.info("After handling the request");
   super.postHandle(request, response, handler, modelAndView);
 }
  @Override
  public void postHandle(
      HttpServletRequest _request,
      HttpServletResponse _response,
      Object _handler,
      ModelAndView _modelAndView)
      throws Exception {
    // TODO Auto-generated method stub
    super.postHandle(_request, _response, _handler, _modelAndView);

    log.info(_handler);
  }
 @Override
 public void postHandle(
     HttpServletRequest request,
     HttpServletResponse response,
     Object handler,
     ModelAndView modelAndView)
     throws Exception {
   Long startTime = (Long) request.getAttribute("startTime");
   Long requestTime = System.currentTimeMillis() - startTime;
   request.setAttribute("requestTime", requestTime);
   super.postHandle(request, response, handler, modelAndView);
 }
  public void postHandle(
      HttpServletRequest request,
      HttpServletResponse response,
      Object handler,
      ModelAndView modelAndView)
      throws Exception {

    ArrayList array = (ArrayList) request.getAttribute("interceptor");
    array.add("TwoInterceptor.postHandle");
    request.setAttribute("interceptor", array);
    super.postHandle(request, response, handler, modelAndView);
  }