org.jasig.web.util
Interface ModelPasser

All Known Implementing Classes:
DefaultModelPasser, LRUTrackingModelPasser

public interface ModelPasser

Provides functionality for passing an object model from a portlet ActonRequest to a HttpServletRequest

Version:
$Revision$
Author:
Eric Dalquist

Method Summary
 Map<Object,Object> getModelFromPortlet(HttpServletRequest request, HttpServletResponse response, String key)
          Retrieve a model for the specified key passed from a portlet in the same web application.
 void passModelToServlet(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, String key, Map<Object,Object> model)
          Take the key and model for the request and store it in a way that a servlet in the same web application.
 

Method Detail

passModelToServlet

void passModelToServlet(javax.portlet.ActionRequest request,
                        javax.portlet.ActionResponse response,
                        String key,
                        Map<Object,Object> model)
Take the key and model for the request and store it in a way that a servlet in the same web application.

Parameters:
key - A session-unique key that can be used for passing the model
model - The model that needs to be passed to the servlet.

getModelFromPortlet

Map<Object,Object> getModelFromPortlet(HttpServletRequest request,
                                       HttpServletResponse response,
                                       String key)
Retrieve a model for the specified key passed from a portlet in the same web application.

Parameters:
key - The session-unique key to retrieve the model for
Returns:
The model for the key, if no model is found null is returned.


Copyright © 2009 Jasig. All Rights Reserved.