Class SessionInfo

    • 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
    • Constructor Detail

      • SessionInfo

        public SessionInfo​(String sid,
                           Runnable sInvalidator)
        Parameters:
        sid - the session id
        sInvalidator - a runnable to invalidate the session
        Since:
        2023.3
      • SessionInfo

        public SessionInfo​(String sid)
    • 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()
      • getAccessedPagesCount

        public int getAccessedPagesCount()