org.appfuse.webapp.filter
Class GZIPFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
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
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 |
GZIPFilter
public GZIPFilter()
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