org.jasig.web.util
Class DefaultModelPasser
java.lang.Object
org.jasig.web.util.DefaultModelPasser
- All Implemented Interfaces:
- ModelPasser
public class DefaultModelPasser
- extends Object
- implements ModelPasser
Uses the application scoped session to share the model between the portlet and servlet
- Version:
- $Revision$
- Author:
- Eric Dalquist
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
DefaultModelPasser
public DefaultModelPasser()
getModelFromPortlet
public Map<Object,Object> getModelFromPortlet(HttpServletRequest request,
HttpServletResponse response,
String key)
- Description copied from interface:
ModelPasser
- Retrieve a model for the specified key passed from a portlet in the same web application.
- Specified by:
getModelFromPortlet in interface ModelPasser
key - The session-unique key to retrieve the model for
- Returns:
- The model for the key, if no model is found null is returned.
passModelToServlet
public void passModelToServlet(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
String key,
Map<Object,Object> model)
- Description copied from interface:
ModelPasser
- Take the key and model for the request and store it in a way that a servlet in the same
web application.
- Specified by:
passModelToServlet in interface ModelPasser
key - A session-unique key that can be used for passing the modelmodel - The model that needs to be passed to the servlet.
Copyright © 2009 Jasig. All Rights Reserved.