public class SimpleWebContext extends CommitMonitor implements WebContext
WebContext
接口,包含request、response和servletContext的信息。
开发人员: renhui
开发时间: 2013-5-7
REQUEST_ATTRIBUTE_FROM_WEBCONTEXT
Constructor and Description |
---|
SimpleWebContext(WebContext webContext,
FilterHandler handler,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
创建一个新的
RequestContext 对象。 |
Modifier and Type | Method and Description |
---|---|
void |
commit()
结束一个请求。
|
void |
prepare()
开始一个请求。
|
String |
toString()
显示当前
RequestContext 的内容。 |
commitHeaders, getTopWebContext, isCommitted, isHeadersCommitted, setCommitted, setHeadersCommitted, setTopWebContext
exist, existFromWrapperContext, get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, isRequestFinished, putSubWebContext, setObject, setRequest, setResponse, setServletContext
clear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalContext, getTotalItemMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent
get, put, putAll, remove, setItemMap, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, isRequestFinished, setObject, setRequest, setResponse, setServletContext
clearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParent
public SimpleWebContext(WebContext webContext, FilterHandler handler, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
RequestContext
对象。webContext
- 当前请求所在的ServletContext
request
- HttpServletRequest
对象response
- HttpServletResponse
对象Copyright © 2006–2018 TinyGroup. All rights reserved.