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.
|
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()
BindingSession
getSessionId
in interface BindingSession
public Collection<String> getKeys()
BindingSession
getKeys
in interface BindingSession
public Object get(String key)
BindingSession
get
in interface BindingSession
public Object get(String key, Object defValue)
BindingSession
get
in interface BindingSession
public int get(String key, int defValue)
BindingSession
get
in interface BindingSession
public void put(String key, Serializable obj)
BindingSession
put
in interface BindingSession
public void put(String key, Object obj, boolean isTransient)
BindingSession
put
in interface BindingSession
public void remove(String key)
BindingSession
remove
in interface BindingSession
public void readLock()
BindingSession
readLock
in interface BindingSession
public void readUnlock()
BindingSession
readUnlock
in interface BindingSession
public void writeLock()
BindingSession
writeLock
in interface BindingSession
public void writeUnlock()
BindingSession
writeUnlock
in interface BindingSession
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.