org.eclipse.jetty.servlets
类 IncludableGzipFilter
java.lang.Object
org.eclipse.jetty.servlets.UserAgentFilter
org.eclipse.jetty.servlets.GzipFilter
org.eclipse.jetty.servlets.IncludableGzipFilter
- 所有已实现的接口:
- 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.
| 从类 org.eclipse.jetty.servlets.GzipFilter 继承的字段 |
_bufferSize, _context, _deflateCompressionLevel, _deflateNoWrap, _excludedAgentPatterns, _excludedAgents, _excludedPathPatterns, _excludedPaths, _methods, _mimeTypes, _minGzipSize, _vary, DEFLATE, ETAG, ETAG_DEFLATE, ETAG_GZIP, GZIP |
| 从类 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
- 从接口
Filter 复制的描述
- Called by the web container to indicate to a filter that it is
being placed into service.
The servlet container calls the init
method exactly once after instantiating the filter. The init
method must complete successfully before the filter is asked to do any
filtering work.
The web container cannot place the filter into service if the init
method either
- Throws a ServletException
- Does not return within a time period defined by the web container
- 指定者:
- 接口
Filter 中的 init - 覆盖:
- 类
GzipFilter 中的 init
- 抛出:
ServletException- 另请参见:
UserAgentFilter.init(javax.servlet.FilterConfig)
createWrappedResponse
protected CompressedResponseWrapper createWrappedResponse(HttpServletRequest request,
HttpServletResponse response,
String compressionType)
- 覆盖:
- 类
GzipFilter 中的 createWrappedResponse
- 另请参见:
GzipFilter.createWrappedResponse(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
Copyright © 2013. All Rights Reserved.