|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.context.impl.BaseContextImpl
org.tinygroup.context.impl.ContextImpl
org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper
org.tinygroup.weblayer.webcontext.session.impl.SessionWebContextImpl
public class SessionWebContextImpl
支持session的HttpRequestContext实现。
| 字段摘要 |
|---|
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的字段 |
|---|
itemMap |
| 构造方法摘要 | |
|---|---|
SessionWebContextImpl(WebContext wrappedContext,
SessionConfig sessionConfig)
构造函数。 |
|
| 方法摘要 | |
|---|---|
void |
clear()
清除session。 |
void |
clearSessionIDFromCookie()
将session ID从Cookie中删除。 |
void |
commit()
结束一个请求。 |
void |
commitHeaders()
提交headers |
String |
decodeSessionIDFromCookie()
从cookie中取得session ID。 |
String |
decodeSessionIDFromURL()
从URL中取得session ID。 |
void |
encodeSessionIDIntoCookie()
将session ID编码到Cookie中去。 |
String |
encodeSessionIDIntoURL(String url)
将session ID编码到URL中去。 |
String |
getRequestedSessionID()
取得当前的session ID。 |
javax.servlet.http.HttpSession |
getSession(boolean create)
取得当前的session,如果不存在,且 create为true,则创建一个新的。 |
SessionConfig |
getSessionConfig()
取得 SessionConfig实例。 |
boolean |
isRequestedSessionIDFromCookie()
当前的session ID是从cookie中取得的吗? |
boolean |
isRequestedSessionIDFromURL()
当前的session ID是从URL中取得的吗? |
boolean |
isRequestedSessionIDValid()
判断当前的session ID是否仍然合法。 |
boolean |
isSessionInvalidated()
判断session是否已经作废。 |
| 从类 org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper 继承的方法 |
|---|
get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, putSubWebContext, setObject, setRequest, setResponse, setServletContext |
| 从类 org.tinygroup.context.impl.ContextImpl 继承的方法 |
|---|
clearSubContext, createSubContext, findNodeMap, get, getParent, getSubContext, getSubContextMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent |
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的方法 |
|---|
exist, get, getItemMap, put, remove, size |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 org.tinygroup.weblayer.WebContext 继承的方法 |
|---|
getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, setObject, setRequest, setResponse, setServletContext |
| 从接口 org.tinygroup.context.Context 继承的方法 |
|---|
clearSubContext, createSubContext, get, getParent, getSubContext, getSubContextMap, put, putSubContext, remove, removeSubContext, setParent |
| 从接口 org.tinygroup.context.BaseContext 继承的方法 |
|---|
exist, get, get, getItemMap, put, remove, renameKey, size |
| 构造方法详细信息 |
|---|
public SessionWebContextImpl(WebContext wrappedContext,
SessionConfig sessionConfig)
| 方法详细信息 |
|---|
public SessionConfig getSessionConfig()
SessionConfig实例。
SessionWebContext 中的 getSessionConfigSessionConfig实例public boolean isSessionInvalidated()
SessionWebContext 中的 isSessionInvalidatedtruepublic void clear()
invalidate()方法,但支持后续操作,而不会抛出
IllegalStateException。
org.tinygroup.context.BaseContext 中的 clearSessionWebContext 中的 clearorg.tinygroup.context.impl.ContextImpl 中的 clearpublic String getRequestedSessionID()
public boolean isRequestedSessionIDFromCookie()
truepublic boolean isRequestedSessionIDFromURL()
truepublic boolean isRequestedSessionIDValid()
truepublic void encodeSessionIDIntoCookie()
public void clearSessionIDFromCookie()
public String decodeSessionIDFromCookie()
nullpublic String encodeSessionIDIntoURL(String url)
public String decodeSessionIDFromURL()
nullpublic javax.servlet.http.HttpSession getSession(boolean create)
create为true,则创建一个新的。
create - 必要时是否创建新的session
create为
false ,则返回null
public void commitHeaders()
throws WebContextException
TwoPhaseCommitWebContext 复制的描述
TwoPhaseCommitWebContext 中的 commitHeadersWebContextExceptionpublic void commit()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||