public interface Session
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key)
Get a property from the session
|
java.util.Enumeration |
getKeys()
Get an enumeration of the keys in this session
|
java.lang.Object |
getLockObject()
Get an Object suitable for synchronizing the session.
|
int |
getTimeout()
Return the sessions' time-to-live.
|
void |
invalidate()
invalidate the session
|
void |
remove(java.lang.String key)
Remove a property from the session
|
void |
set(java.lang.String key,
java.lang.Object value)
Set a property in the session
|
void |
setTimeout(int timeout)
Set the session's time-to-live.
|
void |
touch()
"Touch" the session (mark it recently used)
|
java.lang.Object get(java.lang.String key)
key
- the name of the property desired.void set(java.lang.String key, java.lang.Object value)
key
- the name of the property to set.value
- the value of the property.void remove(java.lang.String key)
key
- the name of the property desired.java.util.Enumeration getKeys()
void setTimeout(int timeout)
int getTimeout()
void touch()
void invalidate()
java.lang.Object getLockObject()
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.