Class ApplicationSession


  • public class ApplicationSession
    extends Object
    POJO representing HTTP session.
    • Field Detail

      • LAST_ACCESSED_BY_IP

        public static final String LAST_ACCESSED_BY_IP
        The Constant LAST_ACCESSED_BY_IP.
        See Also:
        Constant Field Values
      • LAST_ACCESSED_LOCALE

        public static final String LAST_ACCESSED_LOCALE
        The Constant LAST_ACCESSED_LOCALE.
        See Also:
        Constant Field Values
      • id

        private String id
        The id.
      • applicationName

        private String applicationName
        The application name.
      • creationTime

        private Date creationTime
        The creation time.
      • lastAccessTime

        private Date lastAccessTime
        The last access time.
      • maxIdleTime

        private int maxIdleTime
        The max idle time.
      • valid

        private boolean valid
        The valid.
      • serializable

        private boolean serializable
        The serializable.
      • objectCount

        private long objectCount
        The object count.
      • info

        private String info
        The info.
      • managerType

        private String managerType
        The manager type.
      • size

        private long size
        The size.
      • allowedToViewValues

        private boolean allowedToViewValues
        The allowed to view values.
      • lastAccessedIp

        private String lastAccessedIp
        The last accessed ip.
      • lastAccessedIpLocale

        private Locale lastAccessedIpLocale
        The last accessed ip locale.
    • Constructor Detail

      • ApplicationSession

        public ApplicationSession()
    • Method Detail

      • getId

        public String getId()
        Gets the id.
        Returns:
        the id
      • setId

        public void setId​(String id)
        Sets the id.
        Parameters:
        id - the new id
      • getApplicationName

        public String getApplicationName()
        Gets the application name.
        Returns:
        the application name
      • setApplicationName

        public void setApplicationName​(String applicationName)
        Sets the application name.
        Parameters:
        applicationName - the new application name
      • getCreationTime

        public Date getCreationTime()
        Gets the creation time.
        Returns:
        the creation time
      • setCreationTime

        public void setCreationTime​(Date creationTime)
        Sets the creation time.
        Parameters:
        creationTime - the new creation time
      • getLastAccessTime

        public Date getLastAccessTime()
        Gets the last access time.
        Returns:
        the last access time
      • setLastAccessTime

        public void setLastAccessTime​(Date lastAccessTime)
        Sets the last access time.
        Parameters:
        lastAccessTime - the new last access time
      • getMaxIdleTime

        public int getMaxIdleTime()
        Gets the max idle time.
        Returns:
        the max idle time
      • setMaxIdleTime

        public void setMaxIdleTime​(int maxIdleTime)
        Sets the max idle time.
        Parameters:
        maxIdleTime - the new max idle time
      • isValid

        public boolean isValid()
        Checks if is valid.
        Returns:
        true, if is valid
      • setValid

        public void setValid​(boolean valid)
        Sets the valid.
        Parameters:
        valid - the new valid
      • getObjectCount

        public long getObjectCount()
        Gets the object count.
        Returns:
        the object count
      • setObjectCount

        public void setObjectCount​(long objectCount)
        Sets the object count.
        Parameters:
        objectCount - the new object count
      • getAttributes

        public List<Attribute> getAttributes()
        Gets the attributes.
        Returns:
        the attributes
      • setAttributes

        public void setAttributes​(List<Attribute> attributes)
        Sets the attributes.
        Parameters:
        attributes - the new attributes
      • addAttribute

        public void addAttribute​(Attribute sa)
        Adds the attribute.
        Parameters:
        sa - the sa
      • getInfo

        public String getInfo()
        Gets the info.
        Returns:
        the info
      • setInfo

        public void setInfo​(String info)
        Sets the info.
        Parameters:
        info - the new info
      • getManagerType

        public String getManagerType()
        Gets the manager type.
        Returns:
        the manager type
      • setManagerType

        public void setManagerType​(String managerType)
        Sets the manager type.
        Parameters:
        managerType - the new manager type
      • getAge

        public long getAge()
        Gets the age.
        Returns:
        the age
      • getIdleTime

        public long getIdleTime()
        Gets the idle time.
        Returns:
        the idle time
      • getExpiryTime

        public Date getExpiryTime()
        Gets the expiry time.
        Returns:
        the expiry time
      • isSerializable

        public boolean isSerializable()
        Checks if is serializable.
        Returns:
        true, if is serializable
      • setSerializable

        public void setSerializable​(boolean serializable)
        Sets the serializable.
        Parameters:
        serializable - the new serializable
      • getSize

        public long getSize()
        Gets the size.
        Returns:
        the size
      • setSize

        public void setSize​(long size)
        Sets the size.
        Parameters:
        size - the new size
      • isAllowedToViewValues

        public boolean isAllowedToViewValues()
        Checks if is allowed to view values.
        Returns:
        true, if is allowed to view values
      • setAllowedToViewValues

        public void setAllowedToViewValues​(boolean allowedToViewValues)
        Sets the allowed to view values.
        Parameters:
        allowedToViewValues - the new allowed to view values
      • getLastAccessedIp

        public String getLastAccessedIp()
        Gets the last accessed ip.
        Returns:
        the last accessed ip
      • setLastAccessedIp

        public void setLastAccessedIp​(String lastAccessedIp)
        Sets the last accessed ip.
        Parameters:
        lastAccessedIp - the new last accessed ip
      • getLastAccessedIpLocale

        public Locale getLastAccessedIpLocale()
        Gets the last accessed ip locale.
        Returns:
        the last accessed ip locale
      • setLastAccessedIpLocale

        public void setLastAccessedIpLocale​(Locale lastAccessedIpLocale)
        Sets the last accessed ip locale.
        Parameters:
        lastAccessedIpLocale - the new last accessed ip locale