| |
|
| java.lang.Object javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletResponseWrapper compressionFilters.CompressionServletResponseWrapper
CompressionServletResponseWrapper | public class CompressionServletResponseWrapper extends HttpServletResponseWrapper (Code) | | Implementation of HttpServletResponseWrapper that works with
the CompressionServletResponseStream implementation..
author: Amy Roh author: Dmitri Valdin version: $Revision: 1.3 $, $Date: 2004/03/18 16:40:33 $ |
info | final protected static String info(Code) | | Descriptive information about this Response implementation.
|
stream | protected ServletOutputStream stream(Code) | | The ServletOutputStream that has been returned by
getOutputStream() , if any.
|
threshold | protected int threshold(Code) | | The threshold number to compress
|
writer | protected PrintWriter writer(Code) | | The PrintWriter that has been returned by
getWriter() , if any.
|
CompressionServletResponseWrapper | public CompressionServletResponseWrapper(HttpServletResponse response)(Code) | | Calls the parent constructor which creates a ServletResponse adaptor
wrapping the given response object.
|
createOutputStream | public ServletOutputStream createOutputStream() throws IOException(Code) | | Create and return a ServletOutputStream to write the content
associated with this Response.
exception: IOException - if an input/output error occurs |
finishResponse | public void finishResponse()(Code) | | Finish a response.
|
flushBuffer | public void flushBuffer() throws IOException(Code) | | Flush the buffer and commit this response.
exception: IOException - if an input/output error occurs |
setCompressionThreshold | public void setCompressionThreshold(int threshold)(Code) | | Set threshold number
|
setContentLength | public void setContentLength(int length)(Code) | | |
setContentType | public void setContentType(String contentType)(Code) | | Set content type
|
setDebugLevel | public void setDebugLevel(int debug)(Code) | | Set debug level
|
|
|
|