|
SimpleServlets v5.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.simpleservlets.pageprocessor.Session
public class Session
Encapsulates information about a user's session including the session id, the current sequence, and can store session-specific key-value pairs.
| Nested Class Summary | |
|---|---|
static class |
Session.Manager
|
| Field Summary | |
|---|---|
static int |
DEFAULT_TIMEOUT
|
static int |
NEVER_TIMEOUT
|
| Method Summary | |
|---|---|
long |
getIdleTime()
Returns the difference between 'now' and the 'last used time'. |
int |
getIdleTimeoutMinutes()
|
String |
getIdString()
|
long |
getLastUsedTime()
Returns the time that this session last sent a response. |
int |
getSequence()
|
ValueMap |
getSessionStore()
Returns the ValueMap that can be used to store session-specific
information. |
Value |
getSessionValue(String sessionStoreKey)
|
void |
invalidate()
Removes this session from the list of sessions that the Session.Manager is monitoring. |
boolean |
isNew()
Returns true if this session was just created and hasn't been seen by the client yet. |
boolean |
isReload()
Returns true if the sequence sent up does not match the last sequence sent down. |
void |
setIdleTimeoutMinutes(int minutes)
Used to specify a shorter or longer timeout for this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEVER_TIMEOUT
public static final int DEFAULT_TIMEOUT
| Method Detail |
|---|
public String getIdString()
public int getSequence()
public long getLastUsedTime()
public long getIdleTime()
public boolean isReload()
public boolean isNew()
public void setIdleTimeoutMinutes(int minutes)
public int getIdleTimeoutMinutes()
public void invalidate()
public ValueMap getSessionStore()
ValueMap that can be used to store session-specific
information. This activity on this ValueMap is synchronized
independently of the Session it belongs to (use the
getLockObject() method on
ValueMap if you need to perform multiple operations on the
ValueMap that must be done without interference).
public Value getSessionValue(String sessionStoreKey)
|
SimpleServlets v5.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||