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 java.io.PrintWriter |
newWriter(java.io.OutputStream out,
java.lang.String encoding) |
public void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
init
in class org.mortbay.servlet.GzipFilter
ServletException
protected org.mortbay.servlet.GzipFilter.GZIPResponseWrapper newGZIPResponseWrapper(HttpServletRequest request, HttpServletResponse response)
newGZIPResponseWrapper
in class org.mortbay.servlet.GzipFilter
protected java.io.PrintWriter newWriter(java.io.OutputStream out, java.lang.String encoding) throws java.io.UnsupportedEncodingException
newWriter
in class org.mortbay.servlet.GzipFilter
java.io.UnsupportedEncodingException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.