public class BufferedResponse
extends javax.servlet.ServletResponseWrapper
Modifier and Type | Method and Description |
---|---|
void |
flushBuffer() |
static javax.servlet.ServletResponse |
getInstance(javax.servlet.ServletResponse response,
java.io.OutputStream stream)
Returns a buffered response with a output stream, if stream is not null;
or the original response if stream is null.
|
static javax.servlet.ServletResponse |
getInstance(javax.servlet.ServletResponse response,
java.io.Writer writer)
Returns a buffered response with a writer, if writer is not null;
or the original response if writer is null.
|
javax.servlet.ServletOutputStream |
getOutputStream() |
java.io.PrintWriter |
getWriter() |
void |
resetBuffer()
Useful only if StringWriter or ByteArrayOutputStream is used
to construct this object.
|
getBufferSize, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, isWrapperFor, isWrapperFor, reset, setBufferSize, setCharacterEncoding, setContentLength, setContentLengthLong, setContentType, setLocale, setResponse
public static final javax.servlet.ServletResponse getInstance(javax.servlet.ServletResponse response, java.io.Writer writer)
HttpBufferedResponse.getInstance(javax.servlet.http.HttpServletResponse, java.io.Writer)
is returned.
It is smart enough not to wrap the same writer twice.public static final javax.servlet.ServletResponse getInstance(javax.servlet.ServletResponse response, java.io.OutputStream stream)
HttpBufferedResponse.getInstance(javax.servlet.http.HttpServletResponse, java.io.Writer)
is returned.
It is smart enough not to wrap the same stream twice.public java.io.PrintWriter getWriter() throws java.io.IOException
getWriter
in interface javax.servlet.ServletResponse
getWriter
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public javax.servlet.ServletOutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.servlet.ServletResponse
getOutputStream
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface javax.servlet.ServletResponse
flushBuffer
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void resetBuffer()
resetBuffer
in interface javax.servlet.ServletResponse
resetBuffer
in class javax.servlet.ServletResponseWrapper
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.