|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ooweb.sessions.Session
public class Session
Base class for sessions used by OOWeb. Provides a simple implementation based around HashMap.
| Field Summary | |
|---|---|
protected long |
lastTouched
|
protected java.util.Map |
mapImpl
|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
Session(java.lang.String name)
Creates a session with an optional name |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes of the session |
long |
getLastTouched()
Returns the last time (since epoch) the session was touched |
java.util.Map |
getMap()
Gets the Map implementation for this session |
java.lang.String |
getName()
|
boolean |
isOlderThan(long timeout)
Checks whether the session has expired based on session timeout value |
void |
touch()
"Touches" the session to prevent it expiring |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map mapImpl
protected long lastTouched
protected java.lang.String name
| Constructor Detail |
|---|
public Session(java.lang.String name)
| Method Detail |
|---|
public void dispose()
public void touch()
public boolean isOlderThan(long timeout)
public long getLastTouched()
public java.util.Map getMap()
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||