org.eclipse.jetty.servlets
Class IncludableGzipFilter
java.lang.Object
org.eclipse.jetty.servlets.UserAgentFilter
org.eclipse.jetty.servlets.GzipFilter
org.eclipse.jetty.servlets.IncludableGzipFilter
- All Implemented Interfaces:
- Filter
public class IncludableGzipFilter
- extends GzipFilter
Includable GZip Filter.
This extension to the GzipFilter
that uses Jetty features 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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludableGzipFilter
public IncludableGzipFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init
in interface Filter
- Overrides:
init
in class GzipFilter
- Throws:
ServletException
newGZIPResponseWrapper
protected GzipFilter.GZIPResponseWrapper newGZIPResponseWrapper(HttpServletRequest request,
HttpServletResponse response)
- Overrides:
newGZIPResponseWrapper
in class GzipFilter
newWriter
protected PrintWriter newWriter(OutputStream out,
String encoding)
throws UnsupportedEncodingException
- Overrides:
newWriter
in class GzipFilter
- Throws:
UnsupportedEncodingException
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.