public class IncludableGzipFilter
extends org.mortbay.servlet.GzipFilter
GzipFilter that uses Jetty APIs to allow
headers to be set during calls to
RequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse).
This allows the gzip filter to function correct during includes and to make a decision to gzip or not
at the time the buffer fills and on the basis of all response headers.
If the init parameter "uncheckedPrintWriter" is set to "true", then the PrintWriter used by
the wrapped getWriter will be UncheckedPrintWriter.| Modifier and Type | Class and Description |
|---|---|
class |
IncludableGzipFilter.IncludableGzipStream |
class |
IncludableGzipFilter.IncludableResponseWrapper |
| Constructor and Description |
|---|
IncludableGzipFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(FilterConfig filterConfig) |
protected org.mortbay.servlet.GzipFilter.GZIPResponseWrapper |
newGZIPResponseWrapper(HttpServletRequest request,
HttpServletResponse response) |
protected PrintWriter |
newWriter(OutputStream out,
String encoding) |
public void init(FilterConfig filterConfig) throws ServletException
init in interface Filterinit in class org.mortbay.servlet.GzipFilterServletExceptionprotected org.mortbay.servlet.GzipFilter.GZIPResponseWrapper newGZIPResponseWrapper(HttpServletRequest request, HttpServletResponse response)
newGZIPResponseWrapper in class org.mortbay.servlet.GzipFilterprotected PrintWriter newWriter(OutputStream out, String encoding) throws UnsupportedEncodingException
newWriter in class org.mortbay.servlet.GzipFilterUnsupportedEncodingExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.