FileDocCategorySizeDatePackage
ServletResponseWrapperInclude.javaAPI DocApache Tomcat 6.0.142422Fri Jul 20 04:20:32 BST 2007org.apache.jasper.runtime

ServletResponseWrapperInclude

public class ServletResponseWrapperInclude extends HttpServletResponseWrapper
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.
author
Pierre Delisle

Fields Summary
private PrintWriter
printWriter
PrintWriter which appends to the JspWriter of the including page.
private javax.servlet.jsp.JspWriter
jspWriter
Constructors Summary
public ServletResponseWrapperInclude(ServletResponse response, javax.servlet.jsp.JspWriter jspWriter)

	super((HttpServletResponse)response);
	this.printWriter = new PrintWriter(jspWriter);
	this.jspWriter = jspWriter;
    
Methods Summary
public javax.servlet.ServletOutputStreamgetOutputStream()

	throw new IllegalStateException();
    
public java.io.PrintWritergetWriter()
Returns a wrapper around the JspWriter of the including page.

	return printWriter;
    
public voidresetBuffer()
Clears the output buffer of the JspWriter associated with the including page.

	try {
	    jspWriter.clearBuffer();
	} catch (IOException ioe) {
	}