org.tinygroup.weblayer.webcontext.session.impl
public class SessionModelImpl extends Object implements SessionModel
SessionModel.Factory| Constructor and 描述 |
|---|
SessionModelImpl(SessionImpl session) |
SessionModelImpl(String sessionID,
long creationTime,
long lastAccessedTime,
int maxInactiveInterval) |
| Modifier and Type | Method and 描述 |
|---|---|
long |
getCreationTime()
取得session的创建时间。
|
long |
getLastAccessedTime()
取得最近访问时间。
|
int |
getMaxInactiveInterval()
取得session的最大不活动期限,超过此时间,session就会失效。
|
String |
getSessionID()
取得session ID。
|
boolean |
isExpired()
判断session有没有过期。
|
void |
reset() |
void |
setMaxInactiveInterval(int maxInactiveInterval)
设置session的最大不活动期限,超过此时间,session就会失效。
|
void |
setSession(SessionImpl session)
设置model所在的session。
|
String |
toString() |
void |
touch()
更新session的访问时间。
|
public SessionModelImpl(SessionImpl session)
public SessionModelImpl(String sessionID, long creationTime, long lastAccessedTime, int maxInactiveInterval)
public void reset()
public void setSession(SessionImpl session)
public String getSessionID()
getSessionID 接口 {1} 中的 {0} SessionModelpublic long getCreationTime()
getCreationTime 接口 {1} 中的 {0} SessionModelpublic long getLastAccessedTime()
getLastAccessedTime 接口 {1} 中的 {0} SessionModelpublic int getMaxInactiveInterval()
getMaxInactiveInterval 接口 {1} 中的 {0} SessionModelpublic void setMaxInactiveInterval(int maxInactiveInterval)
maxInactiveInterval - 不活动期限的秒数public boolean isExpired()
isExpired 接口 {1} 中的 {0} SessionModeltruepublic void touch()
Copyright © 2006–2015 TinyGroup. All rights reserved.