public class SessionData extends Object implements ISessionData, Serializable
Constructor and Description |
---|
SessionData()
Create a news SessionData object.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContent()
Returns session attributes.
|
long |
getCreationTime()
Returns session creation time stamp.
|
String |
getId()
Returns session Id.
|
long |
getRequestId() |
boolean |
isValid()
Checks if session is valid (not invalidated / not expired).
|
void |
setContent(Map<String,Object> content)
Set session attributes.
|
void |
setCreationTime(long creationTime)
Set session creation time.
|
void |
setId(String id)
Set sesssion id.
|
void |
setRequestId(long requestId)
Set request id.
|
void |
setValid(boolean valid)
Set session validity.
|
public Map<String,Object> getContent()
ISessionData
getContent
in interface ISessionData
ISessionData.getContent()
public long getCreationTime()
ISessionData
getCreationTime
in interface ISessionData
ISessionData.getCreationTime()
public String getId()
ISessionData
getId
in interface ISessionData
ISessionData.getId()
public long getRequestId()
net.sourceforge.statelessfilter.backend.ISessionData#getRequestId()
public boolean isValid()
ISessionData
isValid
in interface ISessionData
ISessionData.isValid()
public void setContent(Map<String,Object> content)
content
- public void setCreationTime(long creationTime)
creationTime
- public void setId(String id)
id
- public void setRequestId(long requestId)
requestId
- ISessionData#getRequestId()
public void setValid(boolean valid)
valid
- Copyright © 2009–2013. All rights reserved.