public class SessionImpl extends Object implements BindingSession
| Constructor and Description |
|---|
SessionImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Gets a session value.
|
boolean |
get(String key,
boolean defValue)
Returns a session value or the default value if the key doesn't exist.
|
int |
get(String key,
int defValue)
Returns a session value or the default value if the key doesn't exist.
|
Object |
get(String key,
Object defValue)
Returns a session value or the default value if the key doesn't exist.
|
Collection<String> |
getKeys()
Returns all keys.
|
String |
getSessionId()
Returns the ID of this session.
|
void |
put(String key,
Object obj,
boolean isTransient)
Adds a session value.
|
void |
put(String key,
Serializable obj)
Adds a non-transient session value.
|
void |
readLock()
Acquires a read lock.
|
void |
readUnlock()
Releases a read lock.
|
void |
remove(String key)
Removes a session value.
|
String |
toString() |
void |
writeLock()
Acquires a write lock.
|
void |
writeUnlock()
Releases a write lock.
|
public String getSessionId()
BindingSessiongetSessionId in interface BindingSessionpublic Collection<String> getKeys()
BindingSessiongetKeys in interface BindingSessionpublic Object get(String key)
BindingSessionget in interface BindingSessionpublic Object get(String key, Object defValue)
BindingSessionget in interface BindingSessionpublic int get(String key, int defValue)
BindingSessionget in interface BindingSessionpublic boolean get(String key, boolean defValue)
BindingSessionget in interface BindingSessionpublic void put(String key, Serializable obj)
BindingSessionput in interface BindingSessionpublic void put(String key, Object obj, boolean isTransient)
BindingSessionput in interface BindingSessionpublic void remove(String key)
BindingSessionremove in interface BindingSessionpublic void readLock()
BindingSessionreadLock in interface BindingSessionpublic void readUnlock()
BindingSessionreadUnlock in interface BindingSessionpublic void writeLock()
BindingSessionwriteLock in interface BindingSessionpublic void writeUnlock()
BindingSessionwriteUnlock in interface BindingSessionCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.