org.kuali.rice.krad.web.controller
Class UifControllerHandlerInterceptor

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerHandlerInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class UifControllerHandlerInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor

Spring controller intercepter for KRAD controllers

Provides infrastructure for preparing the form and view before and after the controller is invoked. Included in this is form session management and preparation of the view for rendering

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
UifControllerHandlerInterceptor()
           
 
Method Summary
 void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex)
          After the view is rendered we can do some cleaning to reduce the size of the form storage in memory
 void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
          After the controller logic is executed, the form is placed into session and the corresponding view is prepared for rendering
 boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
          Before the controller executes the user session is set on GlobalVariables and messages are cleared TODO: do we need to clear the messages before this so that formatting and validation errors done during the binding are not cleared out?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UifControllerHandlerInterceptor

public UifControllerHandlerInterceptor()
Method Detail

preHandle

public boolean preHandle(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         Object handler)
                  throws Exception
Before the controller executes the user session is set on GlobalVariables and messages are cleared TODO: do we need to clear the messages before this so that formatting and validation errors done during the binding are not cleared out?

Specified by:
preHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception
See Also:
HandlerInterceptor.preHandle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)

postHandle

public void postHandle(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       Object handler,
                       org.springframework.web.servlet.ModelAndView modelAndView)
                throws Exception
After the controller logic is executed, the form is placed into session and the corresponding view is prepared for rendering

Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception
See Also:
HandlerInterceptor.postHandle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, org.springframework.web.servlet.ModelAndView)

afterCompletion

public void afterCompletion(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            Object handler,
                            Exception ex)
                     throws Exception
After the view is rendered we can do some cleaning to reduce the size of the form storage in memory

Specified by:
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
Throws:
Exception
See Also:
HandlerInterceptor.afterCompletion(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, java.lang.Exception)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.