| java.lang.Object java.util.AbstractMap com.opensymphony.webwork.portlet.PortletSessionMap
PortletSessionMap | public class PortletSessionMap extends AbstractMap implements Serializable(Code) | | A simple implementation of the
java.util.Map interface to handle a collection of portlet session
attributes. The
PortletSessionMap.entrySet() method enumerates over all session attributes and creates a Set of entries.
Note, this will occur lazily - only when the entry set is asked for.
author: Nils-Helge Garli |
Constructor Summary | |
public | PortletSessionMap(PortletRequest request) Creates a new session map given a portlet request. |
Method Summary | |
public void | clear() | public Set | entrySet() | public Object | get(Object key) Returns the session attribute associated with the given key or
null if it doesn't exist.
Parameters: key - the name of the session attribute. | public Object | put(Object key, Object value) Saves an attribute in the session.
Parameters: key - the name of the session attribute. Parameters: value - the value to set. | public Object | remove(Object key) Removes the specified session attribute.
Parameters: key - the name of the attribute to remove. |
PortletSessionMap | public PortletSessionMap(PortletRequest request)(Code) | | Creates a new session map given a portlet request.
Parameters: request - the portlet request object. |
get | public Object get(Object key)(Code) | | Returns the session attribute associated with the given key or
null if it doesn't exist.
Parameters: key - the name of the session attribute. the session attribute or null if it doesn't exist. |
put | public Object put(Object key, Object value)(Code) | | Saves an attribute in the session.
Parameters: key - the name of the session attribute. Parameters: value - the value to set. the object that was just set. |
remove | public Object remove(Object key)(Code) | | Removes the specified session attribute.
Parameters: key - the name of the attribute to remove. the value that was removed or null if the value wasnot found (and hence, not removed). |
|
|