public class SessionData extends Object implements ApplicationTool
User.setTemp(java.lang.String, java.lang.Object) and
User.getTemp(java.lang.String) methods.| Constructor and Description |
|---|
SessionData() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all data
|
boolean |
containsKey(String key)
Determines is a given key is stored.
|
Object |
get(String key)
Gets the data stored under the key.
|
void |
init(Object data)
Initialize the application tool.
|
Iterator<String> |
iterator()
Gets a iterator for the keys.
|
void |
put(String key,
Object value)
Stores the data.
|
void |
refresh()
Refresh the application tool.
|
public SessionData()
public void init(Object data)
init in interface ApplicationTooldata - initialization datapublic void refresh()
refresh in interface ApplicationToolpublic Object get(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(String key)
key - the key to check forpublic void put(String key, 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()
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.