Package org.appng.core.controller
Class Session
- java.lang.Object
-
- org.appng.core.controller.Session
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Session extends Object implements Cloneable, Serializable
A simple value object representing a users's http-session.- Author:
- Matthias Müller
- See Also:
SessionListener
, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequest()
Session
clone()
boolean
equals(Object other)
Date
getCreationTime()
String
getDomain()
Date
getExpiryDate()
String
getId()
String
getIp()
Date
getLastAccessedTime()
int
getMaxInactiveInterval()
int
getRequests()
String
getShortId()
String
getSite()
String
getUser()
String
getUserAgent()
int
hashCode()
boolean
isAllowExpire()
boolean
isExpired()
void
setAllowExpire(boolean allowExpire)
String
toString()
-
-
-
Constructor Detail
-
Session
public Session(String id)
-
-
Method Detail
-
getCreationTime
public Date getCreationTime()
-
getLastAccessedTime
public Date getLastAccessedTime()
-
getExpiryDate
public Date getExpiryDate()
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
-
isExpired
public boolean isExpired()
-
getDomain
public String getDomain()
-
getSite
public String getSite()
-
getUser
public String getUser()
-
getUserAgent
public String getUserAgent()
-
getIp
public String getIp()
-
getId
public String getId()
-
getRequests
public int getRequests()
-
addRequest
public void addRequest()
-
getShortId
public String getShortId()
-
isAllowExpire
public boolean isAllowExpire()
-
setAllowExpire
public void setAllowExpire(boolean allowExpire)
-
-