com.atlassian.gzipfilter
Class GzipFilter

java.lang.Object
  extended bycom.atlassian.gzipfilter.AbstractFilter
      extended bycom.atlassian.gzipfilter.GzipFilter
All Implemented Interfaces:
javax.servlet.Filter

public class GzipFilter
extends com.atlassian.gzipfilter.AbstractFilter

This filter works in conjunction with a custom instance of the URLRewriteFilter to determine whether to parse a request or not.

By default the filter ships with a urlrewrite-gzip-default.xml file which should work for most situations.

The application can supply its own /WEB-INF/urlrewrite-gzip.xml file, or configure which file to use by setting the filter init parameter urlrewrite.configfile.


Constructor Summary
GzipFilter(GzipFilterIntegration integration)
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
protected  GzipCompatibilitySelectorFactory getFactory()
           
 javax.servlet.FilterConfig getFilterConfig()
          Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init().
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setFilterConfig(javax.servlet.FilterConfig filterConfig)
          Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipFilter

public GzipFilter(GzipFilterIntegration integration)
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getFactory

protected GzipCompatibilitySelectorFactory getFactory()

getFilterConfig

public javax.servlet.FilterConfig getFilterConfig()
Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init().


setFilterConfig

public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
Deprecated. Not needed in final version of Servlet 2.3 API - replaced by init().


destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.