Class SessionInfo


  • public class SessionInfo
    extends Object
    SessionInfo class holds all the information about the Session
    • Constructor Detail

      • SessionInfo

        public SessionInfo()
        Constructs SessionInfo
    • Method Detail

      • toXMLString

        public String toXMLString()
        translates the Session Information to an XML document String based
        Returns:
        An XML String representing the information
      • getSessionID

        public String getSessionID()
        Session id
      • setSessionID

        public void setSessionID​(String sid)
      • getSecret

        public String getSecret()
      • setSecret

        public void setSecret​(String secret)
      • getSessionType

        public String getSessionType()
        Session type
      • setSessionType

        public void setSessionType​(String stype)
      • getClientID

        public String getClientID()
        Cookie id
      • setClientID

        public void setClientID​(String cid)
      • getClientDomain

        public String getClientDomain()
        Cookie domain
      • setClientDomain

        public void setClientDomain​(String cdomain)
      • getMaxTime

        public long getMaxTime()
        Max Session Time in minutes.
      • setMaxTime

        public void setMaxTime​(long maxtime)
      • getMaxIdle

        public long getMaxIdle()
        Max Session Idle time in minutes.
      • setMaxIdle

        public void setMaxIdle​(long maxidle)
      • getMaxCaching

        public long getMaxCaching()
        Max Session Cache time in minutes.
      • setMaxCaching

        public void setMaxCaching​(long maxcaching)
      • getExpiryTime

        public long getExpiryTime​(TimeUnit unit)
        Time at which this session will expire in milliseconds from the UTC epoch.
      • setExpiryTime

        public void setExpiryTime​(long expiryTime,
                                  TimeUnit unit)
      • setNeverExpiring

        public void setNeverExpiring​(boolean neverExpiring)
        Indicates that the session should never expire.
        Parameters:
        neverExpiring - true if the session should never expire. If false this method does nothing.
      • isNeverExpiring

        public boolean isNeverExpiring()
        Whether the session will ever expire or not.
      • getTimeIdle

        public long getTimeIdle()
        Session idle time in seconds.
      • setTimeIdle

        public void setTimeIdle​(long timeidle)
      • getTimeLeft

        public long getTimeLeft()
        Time left for Session to become inactive, in seconds.
      • setTimeLeft

        public void setTimeLeft​(long timeleft)
      • getState

        public String getState()
        Session state
      • setState

        public void setState​(String state)
      • getSessionEventUrls

        public Set<String> getSessionEventUrls()
      • setSessionEventUrls

        public void setSessionEventUrls​(Set<String> sessionEventUrls)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object