|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.context.impl.BaseContextImpl
org.tinygroup.context.impl.ContextImpl
org.tinygroup.weblayer.webcontext.AbstractWebContextWrapper
org.tinygroup.weblayer.webcontext.buffered.impl.BufferedWebContextImpl
public class BufferedWebContextImpl
| 字段摘要 |
|---|
| 从类 org.tinygroup.context.impl.BaseContextImpl 继承的字段 |
|---|
itemMap |
| 构造方法摘要 | |
|---|---|
BufferedWebContextImpl(WebContext wrappedContext)
|
|
| 方法摘要 | |
|---|---|
BufferedResponseImpl |
getBufferedResponse()
取得 BufferedRunDataResponse实例。 |
boolean |
isBuffering()
设置是否将所有信息保存在内存中。 |
org.tinygroup.commons.io.ByteArray |
peekByteBuffer()
返回最上层的ByteArray |
String |
peekCharBuffer()
返回最上层的buffer |
org.tinygroup.commons.io.ByteArray |
popByteBuffer()
弹出最近的buffer,如果堆栈中只有一个buffer,则弹出后再创建一个新的。 |
String |
popCharBuffer()
弹出最近的buffer,如果堆栈中只有一个buffer,则弹出后再创建一个新的。 |
void |
pushBuffer()
创建新的buffer,保存老的buffer。 |
void |
setBuffering(boolean buffering)
设置buffer模式,如果设置成 true,表示将所有信息保存在内存中,否则直接输出到原始response中。 |
| 从类 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 BufferedWebContextImpl(WebContext wrappedContext)
| 方法详细信息 |
|---|
public boolean isBuffering()
BufferedWebContext 中的 isBufferingtruepublic void setBuffering(boolean buffering)
true,表示将所有信息保存在内存中,否则直接输出到原始response中。
此方法必须在getOutputStream和getWriter方法之前执行,否则将抛出
IllegalStateException。
BufferedWebContext 中的 setBufferingbuffering - 是否buffer内容
IllegalStateException - getOutputStream或
getWriter方法已经被执行public void pushBuffer()
BufferedWebContext 中的 pushBufferIllegalStateException - 如果不在buffer模式,或getWriter及
getOutputStream方法从未被调用public org.tinygroup.commons.io.ByteArray popByteBuffer()
BufferedWebContext 中的 popByteBufferIllegalStateException - 如果不在buffer模式,或getWriter
方法曾被调用,或 getOutputStream方法从未被调用public String popCharBuffer()
BufferedWebContext 中的 popCharBufferIllegalStateException - 如果不在buffer模式,或getOutputStream
方法曾被调用,或getWriter方法从未被调用public BufferedResponseImpl getBufferedResponse()
BufferedRunDataResponse实例。
BufferedRunDataResponse实例public org.tinygroup.commons.io.ByteArray peekByteBuffer()
BufferedWebContext 复制的描述
BufferedWebContext 中的 peekByteBufferpublic String peekCharBuffer()
BufferedWebContext 复制的描述
BufferedWebContext 中的 peekCharBuffer
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||