org.jasig.web.portlet.mvc
Class AbstractAjaxController
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.portlet.context.PortletApplicationObjectSupport
org.springframework.web.portlet.handler.PortletContentGenerator
org.springframework.web.portlet.mvc.AbstractController
org.jasig.web.portlet.mvc.AbstractAjaxController
- All Implemented Interfaces:
- ApplicationContextAware, PortletContextAware, Controller
public abstract class AbstractAjaxController
- extends AbstractController
Base class for AJAX portlet callbacks that handles passing the model to the ajax response
servlet via a unique random attribute.
- Version:
- $Revision$
- Author:
- Eric Dalquist
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAjaxController
public AbstractAjaxController()
getSessionKeyGenerator
public SessionKeyGenerator getSessionKeyGenerator()
- See Also:
AjaxPortletSupportService.getSessionKeyGenerator()
setSessionKeyGenerator
public void setSessionKeyGenerator(SessionKeyGenerator sessionKeyGenerator)
- See Also:
AjaxPortletSupportService.setSessionKeyGenerator(SessionKeyGenerator)
getModelPasser
public ModelPasser getModelPasser()
- See Also:
AjaxPortletSupportService.getModelPasser()
setModelPasser
public void setModelPasser(ModelPasser modelPasser)
- See Also:
AjaxPortletSupportService.setModelPasser(ModelPasser)
getAjaxHandlerErrorKey
public String getAjaxHandlerErrorKey()
- See Also:
AjaxPortletSupportService.getAjaxHandlerErrorKey()
setAjaxHandlerErrorKey
public void setAjaxHandlerErrorKey(String ajaxHandlerErrorKey)
- See Also:
AjaxPortletSupportService.setAjaxHandlerErrorKey(String)
getAjaxServletName
public String getAjaxServletName()
setAjaxServletName
public void setAjaxServletName(String ajaxServletName)
- The path to the rendering serlvet do redirect the request to after the model data has been passed.
Defaults to the value of
AjaxPortletSupport.DEFAULT_AJAX_SERVLET_NAME
handleActionRequestInternal
protected final void handleActionRequestInternal(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Overrides:
handleActionRequestInternal in class AbstractController
- Throws:
Exception
handleAjaxRequestInternal
protected abstract Map<String,?> handleAjaxRequestInternal(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
- Called by
handleActionRequestInternal(ActionRequest, ActionResponse) to handle the ajax callback.
The returned model will be passed to the AjaxResponseController via the ModelPasser.passModelToServlet(ActionRequest, ActionResponse, String, Map)
method.
- Throws:
Exception- See Also:
handleActionRequestInternal(ActionRequest, ActionResponse)
Copyright © 2010 Jasig. All Rights Reserved.