|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.ServletResponseWrapper
javax.servlet.http.HttpServletResponseWrapper
org.apache.jasper.runtime.ServletResponseWrapperInclude
public class ServletResponseWrapperInclude
ServletResponseWrapper used by the JSP 'include' action. This wrapper response object is passed to RequestDispatcher.include(), so that the output of the included resource is appended to that of the including page.
| 字段摘要 |
|---|
| 构造方法摘要 | |
|---|---|
ServletResponseWrapperInclude(ServletResponse response,
JspWriter jspWriter)
|
|
| 方法摘要 | |
|---|---|
boolean |
canFlush()
Indicates whether or not the wrapped JspWriter can be flushed. |
void |
flushBuffer()
Flush the wrapper around the JspWriter of the including page. |
ServletOutputStream |
getOutputStream()
The default behavior of this method is to return getOutputStream() on the wrapped response object. |
PrintWriter |
getWriter()
Returns a wrapper around the JspWriter of the including page. |
boolean |
hasData()
Are there any data to be flushed ? |
void |
resetBuffer()
Clears the output buffer of the JspWriter associated with the including page. |
| 从类 javax.servlet.http.HttpServletResponseWrapper 继承的方法 |
|---|
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, getHeader, getHeaderNames, getHeaders, getStatus, sendError, sendError, sendRedirect, setDateHeader, setHeader, setIntHeader, setStatus, setStatus |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.servlet.ServletResponse 继承的方法 |
|---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, isCommitted, reset, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setLocale |
| 构造方法详细信息 |
|---|
public ServletResponseWrapperInclude(ServletResponse response,
JspWriter jspWriter)
| 方法详细信息 |
|---|
public PrintWriter getWriter()
throws IOException
ServletResponse 中的 getWriterServletResponseWrapper 中的 getWriterPrintWriter object that
can return character data to the client
IOException - if an input or output exception occurredServletResponse.getOutputStream(),
ServletResponse.setCharacterEncoding(java.lang.String)
public ServletOutputStream getOutputStream()
throws IOException
ServletResponseWrapper 复制的描述
ServletResponse 中的 getOutputStreamServletResponseWrapper 中的 getOutputStreamServletOutputStream for writing binary data
IOException - if an input or output exception occurredServletResponse.getWriter()public void resetBuffer()
ServletResponse 中的 resetBufferServletResponseWrapper 中的 resetBufferServletResponse.setBufferSize(int),
ServletResponse.getBufferSize(),
ServletResponse.isCommitted(),
ServletResponse.reset()
public void flushBuffer()
throws IOException
ServletResponse 中的 flushBufferServletResponseWrapper 中的 flushBufferIOExceptionServletResponse.setBufferSize(int),
ServletResponse.getBufferSize(),
ServletResponse.isCommitted(),
ServletResponse.reset()public boolean canFlush()
public boolean hasData()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||