| |
|
| java.lang.Object java.util.AbstractMap com.opensymphony.webwork.dispatcher.SessionMap
SessionMap | public class SessionMap extends AbstractMap implements Serializable(Code) | | A simple implementation of the
java.util.Map interface to handle a collection of HTTP session
attributes. The
SessionMap.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: Rickard �berg author: Bill Lynch (docs) author: tm_jee version: $Date: 2006-09-16 19:38:35 +0200 (Sat, 16 Sep 2006) $ $Id: SessionMap.java 2723 2006-09-16 17:38:35Z tmjee $ |
Method Summary | |
public void | clear() Removes all attributes from the session as well as clears entries in this map. | public Set | entrySet() Returns a Set of attributes from the http session. | 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 void | invalidate() Invalidate the http session. | 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. |
SessionMap | public SessionMap(HttpServletRequest request)(Code) | | Creates a new session map given a http servlet request. Note, ths enumeration of request
attributes will occur when the map entries are asked for.
Parameters: request - the http servlet request object. |
clear | public void clear()(Code) | | Removes all attributes from the session as well as clears entries in this map.
|
entrySet | public Set entrySet()(Code) | | Returns a Set of attributes from the http session.
a Set of attributes from the http session. |
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. |
invalidate | public void invalidate()(Code) | | Invalidate the http session.
|
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 was not found (and hence, not removed). |
|
|
|