public abstract class AbstractSession extends Object implements Session
| コンストラクタと説明 |
|---|
AbstractSession(String id,
long timeout)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
long |
getInactivityTimeout()
Gets the session inactivity timeout in milliseconds.
|
org.joda.time.DateTime |
getLastActivityInstant()
Gets the time of the last activity from the user.
|
String |
getPrincipalName()
A convenience method that gets the first principal retrieved from the
Subject. |
String |
getSessionID()
Gets the unique identifier of the session.
|
Subject |
getSubject()
Gets the subject with which this session is associated.
|
void |
setLastActivityInstant(org.joda.time.DateTime activity)
Sets the time of the last activity from the user.
|
void |
setSubject(Subject newSubject)
Sets the subject with which this session is associated.
|
public AbstractSession(String id, long timeout)
id - ID of the sessiontimeout - inactivity timeout for the session in millisecondspublic String getSessionID()
getSessionID インタフェース内 Sessionpublic Subject getSubject()
getSubject インタフェース内 Sessionpublic void setSubject(Subject newSubject)
setSubject インタフェース内 SessionnewSubject - the subject with which this session is associatedpublic String getPrincipalName()
Subject.getPrincipalName インタフェース内 Sessionpublic long getInactivityTimeout()
getInactivityTimeout インタフェース内 Sessionpublic org.joda.time.DateTime getLastActivityInstant()
getLastActivityInstant インタフェース内 Sessionpublic void setLastActivityInstant(org.joda.time.DateTime activity)
setLastActivityInstant インタフェース内 Sessionactivity - time of the last activity from the userCopyright © 2012. All Rights Reserved.