|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
com.opensymphony.webwork.dispatcher.SessionMap
A simple implementation of the Map
interface to handle a collection of HTTP session
attributes. The 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.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Constructor Summary | |
SessionMap(HttpServletRequest request)
Creates a new session map given a http servlet request. |
Method Summary | |
void |
clear()
Removes all attributes from the session as well as clears entries in this map. |
Set |
entrySet()
Returns a Set of attributes from the http session. |
Object |
get(Object key)
Returns the session attribute associated with the given key or null if it doesn't exist. |
Object |
put(Object key,
Object value)
Saves an attribute in the session. |
Object |
remove(Object key)
Removes the specified session attribute. |
Methods inherited from class java.util.AbstractMap |
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SessionMap(HttpServletRequest request)
request
- the http servlet request object.Method Detail |
public void clear()
clear
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object key)
get
in interface Map
key
- the name of the session attribute.
public Object put(Object key, Object value)
put
in interface Map
key
- the name of the session attribute.value
- the value to set.
public Object remove(Object key)
remove
in interface Map
key
- the name of the attribute to remove.
|
WebWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |