Class SessionInfo
- java.lang.Object
-
- org.nuxeo.ecm.platform.web.common.session.SessionInfo
-
- All Implemented Interfaces:
Comparable<SessionInfo>
public class SessionInfo extends Object implements Comparable<SessionInfo>
Stores informations about a user's Http Session- Since:
- 5.4.2
- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected long
creationTime
protected long
lastAccessTime
protected String
lastAccessUrl
protected String
loginName
protected int
nbAccess
protected String
sessionId
protected Runnable
sInvalidator
-
Constructor Summary
Constructors Constructor Description SessionInfo(String sid)
SessionInfo(String sid, Runnable sInvalidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SessionInfo o)
protected String
formatDuration(long nbs)
int
getAccessedPagesCount()
long
getCreationTime()
String
getDurationAsString()
long
getDurationInS()
String
getInactivityAsString()
long
getInactivityInS()
Date
getLastAccessDate()
long
getLastAccessTime()
String
getLastAccessUrl()
String
getLoginName()
String
getSessionId()
void
setLastAccessUrl(String lastAccessUrl)
void
setLoginName(String loginName)
String
toString()
void
updateLastAccessTime()
-
-
-
Field Detail
-
sessionId
protected final String sessionId
-
creationTime
protected final long creationTime
-
lastAccessTime
protected long lastAccessTime
-
nbAccess
protected int nbAccess
-
lastAccessUrl
protected String lastAccessUrl
-
loginName
protected String loginName
-
sInvalidator
protected Runnable sInvalidator
-
-
Method Detail
-
getLastAccessTime
public long getLastAccessTime()
-
updateLastAccessTime
public void updateLastAccessTime()
-
getLastAccessUrl
public String getLastAccessUrl()
-
setLastAccessUrl
public void setLastAccessUrl(String lastAccessUrl)
-
getCreationTime
public long getCreationTime()
-
getLoginName
public String getLoginName()
-
setLoginName
public void setLoginName(String loginName)
-
getSessionId
public String getSessionId()
-
getDurationInS
public long getDurationInS()
-
getInactivityInS
public long getInactivityInS()
-
formatDuration
protected String formatDuration(long nbs)
-
getDurationAsString
public String getDurationAsString()
-
getInactivityAsString
public String getInactivityAsString()
-
getLastAccessDate
public Date getLastAccessDate()
-
compareTo
public int compareTo(SessionInfo o)
- Specified by:
compareTo
in interfaceComparable<SessionInfo>
-
getAccessedPagesCount
public int getAccessedPagesCount()
-
-