|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionRegistry
Maintains a registry of SessionInformation instances.
| Method Summary | |
|---|---|
SessionInformation[] |
getAllSessions(Object principal)
Obtains all the known sessions for the specified principal. |
SessionInformation |
getSessionInformation(String sessionId)
Obtains the session information for the specified sessionId. |
void |
refreshLastRequest(String sessionId)
Updates the given sessionId so its last request time is
equal to the present date and time. |
void |
registerNewSession(String sessionId,
Object principal)
Registers a new session for the specified principal. |
void |
removeSessionInformation(String sessionId)
Deletes all the session information being maintained for the specified sessionId. |
| Method Detail |
|---|
SessionInformation[] getAllSessions(Object principal)
principal - to locate sessions for (should never be
null)
null if none were foundSessionInformation getSessionInformation(String sessionId)
sessionId. Even expired sessions are returned (although
destroyed sessions are never returned).
sessionId - to lookup (should never be null)
null if not foundvoid refreshLastRequest(String sessionId)
sessionId so its last request time is
equal to the present date and time. Silently returns if the given
sessionId cannot be found or the session is marked to expire.
sessionId - for which to update the date and time of the last
request (should never be null)
void registerNewSession(String sessionId,
Object principal)
throws SessionAlreadyUsedException
sessionId - to associate with the principal (should never be
null)principal - to associate with the session (should never be
null)
SessionAlreadyUsedException - DOCUMENT ME!void removeSessionInformation(String sessionId)
sessionId. If the sessionId is not found, the
method gracefully returns.
sessionId - to delete information for (should never be
null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||