Constructor and Description |
---|
SimpleSession()
Default constructor - set lastTouched to now
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Get a property from the session
|
Enumeration |
getKeys()
Get an enumeration of the keys in this session
|
long |
getLastAccessTime() |
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(String key)
Remove a property from the session
|
void |
set(String key,
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)
|
public SimpleSession()
public void remove(String key)
public Enumeration getKeys()
public void setTimeout(int timeout)
setTimeout
in interface Session
public int getTimeout()
Session
getTimeout
in interface Session
public void touch()
public void invalidate()
invalidate
in interface Session
public long getLastAccessTime()
public Object getLockObject()
getLockObject
in interface Session
Copyright © The Apache Software Foundation. All Rights Reserved.