Class SessionInfo
java.lang.Object
org.nuxeo.ecm.platform.web.common.session.SessionInfo
- All Implemented Interfaces:
Comparable<SessionInfo>
Stores informations about a user's Http Session
- Since:
- 5.4.2
- Author:
- Tiry ([email protected])
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected String
formatDuration
(long nbs) int
long
long
long
long
void
setLastAccessUrl
(String lastAccessUrl) void
setLoginName
(String loginName) toString()
void
-
Field Details
-
sessionId
-
creationTime
protected final long creationTime -
lastAccessTime
protected long lastAccessTime -
nbAccess
protected int nbAccess -
lastAccessUrl
-
loginName
-
sInvalidator
-
-
Constructor Details
-
SessionInfo
- Parameters:
sid
- the session idsInvalidator
- a runnable to invalidate the session- Since:
- 2023.3
-
SessionInfo
-
-
Method Details
-
getLastAccessTime
public long getLastAccessTime() -
updateLastAccessTime
public void updateLastAccessTime() -
getLastAccessUrl
-
setLastAccessUrl
-
getCreationTime
public long getCreationTime() -
getLoginName
-
setLoginName
-
getSessionId
-
getDurationInS
public long getDurationInS() -
getInactivityInS
public long getInactivityInS() -
formatDuration
-
getDurationAsString
-
getInactivityAsString
-
getLastAccessDate
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SessionInfo>
-
toString
-
getAccessedPagesCount
public int getAccessedPagesCount()
-