org.apache.jasper.runtime
public class: ServletResponseWrapperInclude [javadoc |
source]
java.lang.Object
javax.servlet.ServletResponseWrapper
javax.servlet.http.HttpServletResponseWrapper
org.apache.jasper.runtime.ServletResponseWrapperInclude
All Implemented Interfaces:
HttpServletResponse, ServletResponse
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.
| Methods from javax.servlet.http.HttpServletResponseWrapper: |
|---|
|
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectURL, encodeRedirectUrl, encodeURL, encodeUrl, sendError, sendError, sendRedirect, setDateHeader, setHeader, setIntHeader, setStatus, setStatus |
| Methods from javax.servlet.ServletResponseWrapper: |
|---|
|
flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getOutputStream, getResponse, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setLocale, setResponse |
| Method from org.apache.jasper.runtime.ServletResponseWrapperInclude Detail: |
public ServletOutputStream getOutputStream() throws IOException {
throw new IllegalStateException();
}
|
public PrintWriter getWriter() throws IOException {
return printWriter;
}
Returns a wrapper around the JspWriter of the including page. |
public void resetBuffer() {
try {
jspWriter.clearBuffer();
} catch (IOException ioe) {
}
}
Clears the output buffer of the JspWriter associated with the including
page. |