public class SessionContext extends Object
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name)
Fetch a value
|
static Cache |
getCache() |
static SessionContext |
getInstance(String id)
Get a Session Context instance
|
int |
getInt(String name)
Fetch an int value
|
void |
put(String name,
Object value)
Set a name=value pair
|
void |
putInt(String name,
int value)
Set a name=value pair
|
void |
remove(String name)
Delete a name=value pair
|
static void |
setCache(Cache cache) |
static String |
uniqueSessionName(Object parent)
Construct a session-wide unique name (unique within a browser session)
|
public static SessionContext getInstance(String id)
public Object get(String name)
name - Attribute namepublic void put(String name, Object value)
name - Attribute namevalue - Attribute valuepublic int getInt(String name)
name - Attribute namepublic void putInt(String name, int value)
name - Attribute namevalue - Attribute valuepublic void remove(String name)
name - Attribute namepublic static String uniqueSessionName(Object parent)
public static Cache getCache()
public static void setCache(Cache cache)
cache - the cache to setCopyright © 2004–2017 Indiana University Library Information Technology. All rights reserved.