org.apache.catalina.ssi
Class ResponseIncludeWrapper
HttpServletResponseWrapper
org.apache.catalina.ssi.ResponseIncludeWrapper
public class ResponseIncludeWrapper
extends HttpServletResponseWrapper
A HttpServletResponseWrapper, used from
SSIServletExternalResolver
Version:
- Bip Thelin
ResponseIncludeWrapper(HttpServletResponse res, ServletOutputStream originalServletOutputStream) - Initialize our wrapper with the current HttpServletResponse and
ServletOutputStream.
|
void | flushOutputStreamOrWriter() - Flush the servletOutputStream or printWriter ( only one will be non-null )
This must be called after a requestDispatcher.include, since we can't
assume that the included servlet flushed its stream.
|
ServletOutputStream | getOutputStream() - Return a OutputStream, throws and exception if a printwriter already
been returned.
|
PrintWriter | getWriter() - Return a printwriter, throws and exception if a OutputStream already
been returned.
|
originalServletOutputStream
protected ServletOutputStream originalServletOutputStream
Our ServletOutputStream
printWriter
protected PrintWriter printWriter
servletOutputStream
protected ServletOutputStream servletOutputStream
ResponseIncludeWrapper
public ResponseIncludeWrapper(HttpServletResponse res,
ServletOutputStream originalServletOutputStream)
Initialize our wrapper with the current HttpServletResponse and
ServletOutputStream.
res
- The HttpServletResponse to use
flushOutputStreamOrWriter
public void flushOutputStreamOrWriter()
throws IOException
Flush the servletOutputStream or printWriter ( only one will be non-null )
This must be called after a requestDispatcher.include, since we can't
assume that the included servlet flushed its stream.
getOutputStream
public ServletOutputStream getOutputStream()
throws java.io.IOException
Return a OutputStream, throws and exception if a printwriter already
been returned.
- a OutputStream object
getWriter
public PrintWriter getWriter()
throws java.io.IOException
Return a printwriter, throws and exception if a OutputStream already
been returned.
- a PrintWriter object
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.