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) |
commitHeadersgetObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, isRequestFinished, setObject, setRequest, setResponse, setServletContextclearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParentSessionConfig getSessionConfig()
SessionConfig实例。SessionConfig实例boolean isSessionInvalidated()
truevoid clear()
invalidate()方法,但支持后续操作,而不会抛出
IllegalStateException。clear in interface BaseContextboolean isIgnoreSessionTouch()
void setIgnoreSessionTouch(boolean ignore)
Copyright © 2006–2018 TinyGroup. All rights reserved.