org.tinygroup.weblayer.webcontext.lazycommit.impl
public class LazyCommitWebContextImpl extends AbstractWebContextWrapper implements LazyCommitWebContext
| Constructor and 描述 |
|---|
LazyCommitWebContextImpl(WebContext wrappedContext)
包装一个
RequestContext对象。 |
| Modifier and Type | Method and 描述 |
|---|---|
void |
commit()
结束一个请求。
|
void |
commitHeaders()
提交headers
|
String |
getErrorMessage()
如果
sendError()方法曾被调用,则该方法返回一个error信息。 |
int |
getErrorStatus()
如果
sendError()方法曾被调用,则该方法返回一个error状态值。 |
String |
getRedirectLocation()
取得重定向的URI。
|
int |
getStatus()
取得最近设置的HTTP status。
|
boolean |
isError()
判断当前请求是否已出现异常。
|
boolean |
isRedirected()
判断当前请求是否已被重定向。
|
boolean |
isRequestFinished()
请求是否已终止,例如请求已被重定向了,该请求将被终止,返回true。
|
exist, existFromWrapperContext, get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, putSubWebContext, setObject, setRequest, setResponse, setServletContextclear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, get, getParent, getSubContext, getSubContextMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParentget, getItemMap, put, putAll, remove, setItemMap, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, setObject, setRequest, setResponse, setServletContextpublic LazyCommitWebContextImpl(WebContext wrappedContext)
RequestContext对象。wrappedContext - 被包装的RequestContextpublic boolean isError()
isError 接口 {1} 中的 {0} LazyCommitWebContexttruepublic int getErrorStatus()
sendError()方法曾被调用,则该方法返回一个error状态值。getErrorStatus 接口 {1} 中的 {0} LazyCommitWebContext0public String getErrorMessage()
sendError()方法曾被调用,则该方法返回一个error信息。getErrorMessage 接口 {1} 中的 {0} LazyCommitWebContextnullpublic boolean isRedirected()
isRedirected 接口 {1} 中的 {0} LazyCommitWebContexttruepublic String getRedirectLocation()
getRedirectLocation 接口 {1} 中的 {0} LazyCommitWebContextnullpublic int getStatus()
getStatus 接口 {1} 中的 {0} LazyCommitWebContextpublic void commitHeaders()
throws LazyCommitFailedException
TwoPhaseCommitWebContextcommitHeaders 接口 {1} 中的 {0} TwoPhaseCommitWebContextLazyCommitFailedExceptionpublic void commit()
throws LazyCommitFailedException
LazyCommitFailedException - 如果失败public boolean isRequestFinished()
WebContextisRequestFinished 接口 {1} 中的 {0} WebContextisRequestFinished 类 {1} 中的 {0} AbstractWebContextWrapperCopyright © 2006–2015 TinyGroup. All rights reserved.