|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.pull.util.SessionData
Pull tool designed to be used in the session scope for storage of
temporary data. This tool should eliminate the need for the
User.setTemp(java.lang.String, java.lang.Object) and
User.getTemp(java.lang.String) methods.
| Constructor Summary | |
SessionData()
|
|
| Method Summary | |
void |
clear()
Clears all data |
boolean |
containsKey(java.lang.String key)
Determines is a given key is stored. |
java.lang.Object |
get(java.lang.String key)
Gets the data stored under the key. |
void |
init(java.lang.Object data)
Initialize the application tool. |
java.util.Iterator |
iterator()
Gets a iterator for the keys. |
void |
put(java.lang.String key,
java.lang.Object value)
Stores the data. |
void |
refresh()
Refresh the application tool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionData()
| Method Detail |
public void init(java.lang.Object data)
init in interface ApplicationTooldata - initialization datapublic void refresh()
refresh in interface ApplicationToolpublic java.lang.Object get(java.lang.String key)
To check for a key with a null value use containsKey(java.lang.String).
key - key under which the data is stored.
Object stored under the key.public boolean containsKey(java.lang.String key)
key - the key to check for
public void put(java.lang.String key,
java.lang.Object value)
key - key under which the data will be stored.value - data to store under the key. Null values are allowed.public void clear()
public java.util.Iterator iterator()
Iterator for the keys
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||