Package psiprobe.model
Class ApplicationSession
- java.lang.Object
-
- psiprobe.model.ApplicationSession
-
public class ApplicationSession extends Object
POJO representing HTTP session.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowedToViewValues
The allowed to view values.private String
applicationName
The application name.private List<Attribute>
attributes
The attributes.private Date
creationTime
The creation time.private String
id
The id.private String
info
The info.static String
LAST_ACCESSED_BY_IP
The Constant LAST_ACCESSED_BY_IP.static String
LAST_ACCESSED_LOCALE
The Constant LAST_ACCESSED_LOCALE.private String
lastAccessedIp
The last accessed ip.private Locale
lastAccessedIpLocale
The last accessed ip locale.private Date
lastAccessTime
The last access time.private String
managerType
The manager type.private int
maxIdleTime
The max idle time.private long
objectCount
The object count.private boolean
serializable
The serializable.private long
size
The size.private boolean
valid
The valid.
-
Constructor Summary
Constructors Constructor Description ApplicationSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(Attribute sa)
Adds the attribute.long
getAge()
Gets the age.String
getApplicationName()
Gets the application name.List<Attribute>
getAttributes()
Gets the attributes.Date
getCreationTime()
Gets the creation time.Date
getExpiryTime()
Gets the expiry time.String
getId()
Gets the id.long
getIdleTime()
Gets the idle time.String
getInfo()
Gets the info.String
getLastAccessedIp()
Gets the last accessed ip.Locale
getLastAccessedIpLocale()
Gets the last accessed ip locale.Date
getLastAccessTime()
Gets the last access time.String
getManagerType()
Gets the manager type.int
getMaxIdleTime()
Gets the max idle time.long
getObjectCount()
Gets the object count.long
getSize()
Gets the size.boolean
isAllowedToViewValues()
Checks if is allowed to view values.boolean
isSerializable()
Checks if is serializable.boolean
isValid()
Checks if is valid.void
setAllowedToViewValues(boolean allowedToViewValues)
Sets the allowed to view values.void
setApplicationName(String applicationName)
Sets the application name.void
setAttributes(List<Attribute> attributes)
Sets the attributes.void
setCreationTime(Date creationTime)
Sets the creation time.void
setId(String id)
Sets the id.void
setInfo(String info)
Sets the info.void
setLastAccessedIp(String lastAccessedIp)
Sets the last accessed ip.void
setLastAccessedIpLocale(Locale lastAccessedIpLocale)
Sets the last accessed ip locale.void
setLastAccessTime(Date lastAccessTime)
Sets the last access time.void
setManagerType(String managerType)
Sets the manager type.void
setMaxIdleTime(int maxIdleTime)
Sets the max idle time.void
setObjectCount(long objectCount)
Sets the object count.void
setSerializable(boolean serializable)
Sets the serializable.void
setSize(long size)
Sets the size.void
setValid(boolean valid)
Sets the valid.
-
-
-
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.
-
-
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
-
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
-
-