public class IncludableGzipFilter extends GzipFilter
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
._buffer, _bufferSize, _checkGzExists, _context, _deflateCompressionLevel, _deflateNoWrap, _deflater, _excludedAgentPatterns, _excludedAgents, _excludedPathPatterns, _excludedPaths, _excludeMimeTypes, _methods, _mimeTypes, _minGzipSize, _vary, DEFLATE, ETAG, ETAG_DEFLATE, ETAG_GZIP, GZIP
Constructor and Description |
---|
IncludableGzipFilter() |
Modifier and Type | Method and Description |
---|---|
protected CompressedResponseWrapper |
createWrappedResponse(HttpServletRequest request,
HttpServletResponse response,
String compressionType) |
void |
init(FilterConfig filterConfig) |
configureWrappedResponse, destroy, doFilter
getUserAgent, getUserAgent
public void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
init
in class GzipFilter
ServletException
UserAgentFilter.init(javax.servlet.FilterConfig)
protected CompressedResponseWrapper createWrappedResponse(HttpServletRequest request, HttpServletResponse response, String compressionType)
Copyright © 1995-2015 Webtide. All Rights Reserved.