public interface SessionWebContext extends TwoPhaseCommitWebContext
WebContext
实现。REQUEST_ATTRIBUTE_FROM_WEBCONTEXT
Modifier and Type | Method and Description |
---|---|
void |
clear()
清除session。类似
invalidate() 方法,但支持后续操作,而不会抛出
IllegalStateException 。 |
SessionConfig |
getSessionConfig()
取得
SessionConfig 实例。 |
boolean |
isIgnoreSessionTouch()
是否忽略session最后访问时间更新
|
boolean |
isSessionInvalidated()
判断session是否已经作废。
|
void |
setIgnoreSessionTouch(boolean ignore) |
commitHeaders
getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, isRequestFinished, setObject, setRequest, setResponse, setServletContext
clearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParent
SessionConfig getSessionConfig()
SessionConfig
实例。SessionConfig
实例boolean isSessionInvalidated()
true
void clear()
invalidate()
方法,但支持后续操作,而不会抛出
IllegalStateException
。clear
in interface BaseContext
boolean isIgnoreSessionTouch()
void setIgnoreSessionTouch(boolean ignore)
Copyright © 2006–2018 TinyGroup. All rights reserved.