org.jasig.web.servlet.mvc
Class AjaxResponseController
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
org.jasig.web.servlet.mvc.AjaxResponseController
- All Implemented Interfaces:
- ApplicationContextAware, ServletContextAware, Controller
public class AjaxResponseController
- extends AbstractController
Retrieves the model from the porlet using ModelPasser.getModelFromPortlet(HttpServletRequest, HttpServletResponse, String)
then renders the specified view with the model. If no model is found a ServletException is thrown.
By default requireSession is set to true and the viewName is set to DEFAULT_VIEW_NAME
- Version:
- $Revision$
- Author:
- Eric Dalquist
| Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_KEY
public static final String SESSION_KEY
- See Also:
- Constant Field Values
DEFAULT_VIEW_NAME
public static final String DEFAULT_VIEW_NAME
- See Also:
- Constant Field Values
AjaxResponseController
public AjaxResponseController()
getModelPasser
public ModelPasser getModelPasser()
setModelPasser
public void setModelPasser(ModelPasser modelPasser)
- Used to get the model data from the data portlet. Defaults to
DefaultModelPasser
getViewName
public String getViewName()
setViewName
public void setViewName(String viewName)
- The view used to render the model. Defaults to
DEFAULT_VIEW_NAME
handleRequestInternal
protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response)
throws Exception
- Specified by:
handleRequestInternal in class AbstractController
- Throws:
Exception
Copyright © 2009 Jasig. All Rights Reserved.