public class LocalSessionState extends SessionStateBase
_domain, _expiry, ctx
限定符 | 构造器和说明 |
---|---|
protected |
LocalSessionState(Context ctx) |
限定符和类型 | 方法和说明 |
---|---|
long |
creationTime()
创建时间
|
long |
lastAccessTime()
最后访问时间
|
boolean |
replaceable()
是否可替换
|
java.lang.String |
sessionChangeId()
变更SESSION_ID
|
void |
sessionClear()
清除SESSION状态
|
<T> T |
sessionGet(java.lang.String key,
java.lang.Class<T> clz)
获取SESSION状态(指定类型)
|
java.lang.String |
sessionId()
获取SESSION_ID
|
java.util.Collection<java.lang.String> |
sessionKeys()
获取SESSION键名集合
|
void |
sessionPublish()
发布SESSION状态(类似jwt)
|
void |
sessionRefresh()
刷新SESSION状态(可续时)
|
void |
sessionRemove(java.lang.String key)
移除SESSION状态
|
void |
sessionReset()
会话重置(清空数据,并变更会话ID)
|
void |
sessionSet(java.lang.String key,
java.lang.Object val)
设置SESSION状态
|
cookieGet, cookieSet, sessionIdGet, sessionIdPush
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionGet, sessionToken
protected LocalSessionState(Context ctx)
public boolean replaceable()
SessionState
public long creationTime()
SessionState
public long lastAccessTime()
SessionState
public java.lang.String sessionId()
SessionState
public java.lang.String sessionChangeId()
SessionState
public java.util.Collection<java.lang.String> sessionKeys()
SessionState
public <T> T sessionGet(java.lang.String key, java.lang.Class<T> clz)
SessionState
public void sessionSet(java.lang.String key, java.lang.Object val)
SessionState
public void sessionRemove(java.lang.String key)
SessionState
public void sessionClear()
SessionState
public void sessionReset()
SessionState
public void sessionRefresh()
SessionState
public void sessionPublish() throws java.io.IOException
SessionState
java.io.IOException