public interface SessionTracker extends AuditEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
eventArrived(AuditEvent event)
This method simply associates the give event with a session
or creates a new session if this event is not related to a previous
one.
|
Session |
getSession(String sessionId)
This method is meant to return the session that is associated with the given ID.
|
Collection<Session> |
getSessions()
Returns a list (collection) of the sessions that have been created/observed by this
tracker.
|
long |
getSessionTimeOut()
This method simply returns the session timeout of the tracker implementation.
|
void |
reset()
This method resets the tracker to a clean state, forgetting about
all sessions.
|
void |
setSessionTimeOut(long s)
This method sets the session timeout.
|
void |
setStrictSessions(boolean b)
Enables strict-mode for tracking/creating new sessions.
|
boolean |
usesStrictSessions()
Returns
true, if the tracker only produces strict sessions. |
eventsArrivedvoid setStrictSessions(boolean b)
true,
new sessions are only created by session-identifiers sent from the server-side (Set-Cookie,
href,...).b - void setSessionTimeOut(long s)
s - The session timeout in milliseconds!long getSessionTimeOut()
boolean usesStrictSessions()
true, if the tracker only produces strict sessions.true, if this tracker creates only strict sessions.void eventArrived(AuditEvent event)
eventArrived in interface AuditEventListenereventArrived in interface EventListener<AuditEvent>event - void reset()
Collection<Session> getSessions()
Session getSession(String sessionId)
sessionId - The id of the session that is to be returned.Copyright © 2013 jwall.org. All Rights Reserved.