public class WebSessionImpl extends java.lang.Object implements WebSession
Modifier | Constructor and Description |
---|---|
protected |
WebSessionImpl()
Protected Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getExpires()
Gets the current value of expires
|
java.lang.Long |
getId()
Gets the current value of id
|
java.lang.String |
getKey()
Makes a key for the session.
|
User |
getUser()
Gets the current value of web_user_id
|
java.lang.String |
getValue()
Returns the value
|
java.lang.Long |
getWebUserId()
Gets the current value of web_user_id
|
boolean |
isExpired()
Determine if the session is expired already
|
void |
setExpires(long expIn)
Sets the value of expires to new value
|
protected void |
setId(java.lang.Long idIn)
Sets the value of id to new value
|
void |
setWebUserId(java.lang.Long idIn)
Sets the value of web_user_id to new value
|
public java.lang.Long getId()
getId
in interface WebSession
protected void setId(java.lang.Long idIn)
idIn
- New value for idpublic java.lang.Long getWebUserId()
getWebUserId
in interface WebSession
public void setWebUserId(java.lang.Long idIn)
setWebUserId
in interface WebSession
idIn
- User id associated with this Session.public User getUser()
getUser
in interface WebSession
public long getExpires()
getExpires
in interface WebSession
public void setExpires(long expIn)
setExpires
in interface WebSession
expIn
- lifetime of this session in milliseconds.public boolean isExpired()
isExpired
in interface WebSession
public java.lang.String getValue()
getValue
in interface WebSession
public java.lang.String getKey()
getKey
in interface WebSession