org.appfuse.webapp.filter
Class GZIPFilter

java.lang.Object
  extended byorg.appfuse.webapp.filter.GZIPFilter
All Implemented Interfaces:
Filter

public class GZIPFilter
extends Object
implements Filter

Filter that compresses output with gzip (assuming that browser supports gzip). Code from http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html. © 2003 Jayson Falkner You may freely use the code both commercially and non-commercially.

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:24 $
Author:
Matt Raible

Constructor Summary
GZIPFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZIPFilter

public GZIPFilter()
Method Detail

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

init

public void init(FilterConfig filterConfig)
Specified by:
init in interface Filter

destroy

public void destroy()
Specified by:
destroy in interface Filter


Copyright © 2002-2004