|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.context.impl.BaseContextImpl
org.tinygroup.context.impl.ContextImpl
org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper
org.tinygroup.weblayer.webcontext.lazycommit.impl.LazyCommitWebContextImpl
public class LazyCommitWebContextImpl
延迟提交response的实现。
| 字段摘要 |
|---|
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的字段 |
|---|
itemMap |
| 构造方法摘要 | |
|---|---|
LazyCommitWebContextImpl(WebContext wrappedContext)
包装一个 RequestContext对象。 |
|
| 方法摘要 | |
|---|---|
void |
commit()
结束一个请求。 |
void |
commitHeaders()
提交headers |
String |
getErrorMessage()
如果 sendError()方法曾被调用,则该方法返回一个error信息。 |
int |
getErrorStatus()
如果 sendError()方法曾被调用,则该方法返回一个error状态值。 |
String |
getRedirectLocation()
取得重定向的URI。 |
int |
getStatus()
取得最近设置的HTTP status。 |
boolean |
isError()
判断当前请求是否已出错。 |
boolean |
isRedirected()
判断当前请求是否已被重定向。 |
| 从类 org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper 继承的方法 |
|---|
get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, putSubWebContext, setObject, setRequest, setResponse, setServletContext |
| 从类 org.tinygroup.context.impl.ContextImpl 继承的方法 |
|---|
clear, 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 继承的方法 |
|---|
clear, exist, get, get, getItemMap, put, remove, renameKey, size |
| 构造方法详细信息 |
|---|
public LazyCommitWebContextImpl(WebContext wrappedContext)
RequestContext对象。
wrappedContext - 被包装的RequestContext| 方法详细信息 |
|---|
public boolean isError()
LazyCommitWebContext 中的 isErrortruepublic int getErrorStatus()
sendError()方法曾被调用,则该方法返回一个error状态值。
LazyCommitWebContext 中的 getErrorStatus0public String getErrorMessage()
sendError()方法曾被调用,则该方法返回一个error信息。
LazyCommitWebContext 中的 getErrorMessagenullpublic boolean isRedirected()
LazyCommitWebContext 中的 isRedirectedtruepublic String getRedirectLocation()
LazyCommitWebContext 中的 getRedirectLocationnullpublic int getStatus()
LazyCommitWebContext 中的 getStatus
public void commitHeaders()
throws LazyCommitFailedException
TwoPhaseCommitWebContext 复制的描述
TwoPhaseCommitWebContext 中的 commitHeadersLazyCommitFailedException
public void commit()
throws LazyCommitFailedException
LazyCommitFailedException - 如果失败
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||