org.jasig.web.servlet.mvc
Class AjaxResponseController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by 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

Field Summary
static String DEFAULT_VIEW_NAME
           
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
AjaxResponseController()
           
 
Method Summary
 ModelPasser getModelPasser()
           
 String getViewName()
           
protected  ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
           
 void setModelPasser(ModelPasser modelPasser)
           
 void setViewName(String viewName)
          The view used to render the model.
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
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 org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VIEW_NAME

public static final String DEFAULT_VIEW_NAME
See Also:
Constant Field Values
Constructor Detail

AjaxResponseController

public AjaxResponseController()
Method Detail

getModelPasser

public ModelPasser getModelPasser()
See Also:
AjaxPortletSupportService.getModelPasser()

setModelPasser

public void setModelPasser(ModelPasser modelPasser)
See Also:
AjaxPortletSupportService.setModelPasser(ModelPasser)

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 © 2010 Jasig. All Rights Reserved.