public interface BindingSession extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Gets a session value.
|
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 object,
boolean isTransient)
Adds a session value.
|
void |
put(String key,
Serializable object)
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.
|
void |
writeLock()
Acquires a write lock.
|
void |
writeUnlock()
Releases a write lock.
|
String getSessionId()
Collection<String> getKeys()
Object get(String key, Object defValue)
int get(String key, int defValue)
void put(String key, Serializable object)
void remove(String key)
void readLock()
void readUnlock()
void writeLock()
void writeUnlock()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.