org.appfuse.webapp.filter
Class GZIPFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.web.filter.OncePerRequestFilter
          extended by org.appfuse.webapp.filter.GZIPFilter
All Implemented Interfaces:
Filter, BeanNameAware, DisposableBean, InitializingBean, ServletContextAware

public class GZIPFilter
extends OncePerRequestFilter

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.

Author:
Matt Raible

Field Summary
 
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
GZIPFilter()
           
 
Method Summary
 void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
 
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setFilterConfig, setServletContext
 
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

doFilterInternal

public void doFilterInternal(HttpServletRequest request,
                             HttpServletResponse response,
                             FilterChain chain)
                      throws IOException,
                             ServletException
Specified by:
doFilterInternal in class OncePerRequestFilter
Throws:
IOException
ServletException


Copyright � 2002-2006