public final class JsfSessionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
getObjectFromSession(String key)
Gets an Object from the current session.
|
static Map<String,Object> |
getSessionMap()
Convenience method to get the session map.
|
static String |
getStringFromSession(String key)
Gets a String object from the current session.
|
static Object |
putInSession(String key,
Object object)
Puts the supplied object, using the supplied key, in the session.
|
public static Map<String,Object> getSessionMap()
public static String getStringFromSession(String key)
key
- The key of the object to get.public static Object getObjectFromSession(String key)
key
- The key of the object to get.public static Object putInSession(String key, Object object)
key
- The key to store the supplied object under.object
- The object to store in the session.NullPointerException
- When the supplied key is null.IllegalArgumentException
- When the supplied key is empty.Copyright © 2008–2018. All rights reserved.