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 WebSessionprotected void setId(java.lang.Long idIn)
idIn - New value for idpublic java.lang.Long getWebUserId()
getWebUserId in interface WebSessionpublic void setWebUserId(java.lang.Long idIn)
setWebUserId in interface WebSessionidIn - User id associated with this Session.public User getUser()
getUser in interface WebSessionpublic long getExpires()
getExpires in interface WebSessionpublic void setExpires(long expIn)
setExpires in interface WebSessionexpIn - lifetime of this session in milliseconds.public boolean isExpired()
isExpired in interface WebSessionpublic java.lang.String getValue()
getValue in interface WebSessionpublic java.lang.String getKey()
getKey in interface WebSession