com.atlassian.bamboo.filter
Class CompressingFilter

java.lang.Object
  extended by com.atlassian.bamboo.filter.CompressingFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CompressingFilter
extends java.lang.Object
implements javax.servlet.Filter

Wraps the CompressingFilter so that it can be switched on and off from the Bamboo UI.


Constructor Summary
CompressingFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 javax.servlet.FilterConfig getFilterConfig()
          Deprecated. since 1.0 Not needed in latest version of Servlet 2.3 API. NOTE: Filter doesn't work with Orion 1.5.2 without this method
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setFilterConfig(javax.servlet.FilterConfig filterConfig)
          Deprecated. since 1.0 Not needed in latest version of Servlet 2.3 API - replaced by init(). NOTE: Filter doesn't work with Orion 1.5.2 without this method
 void setWrappedFilter(javax.servlet.Filter filter)
          Used in testing to provide a mock wrapped filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressingFilter

public CompressingFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

getFilterConfig

@Deprecated
public javax.servlet.FilterConfig getFilterConfig()
Deprecated. since 1.0 Not needed in latest version of Servlet 2.3 API. NOTE: Filter doesn't work with Orion 1.5.2 without this method


setFilterConfig

@Deprecated
public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
Deprecated. since 1.0 Not needed in latest version of Servlet 2.3 API - replaced by init(). NOTE: Filter doesn't work with Orion 1.5.2 without this method


doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

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

setWrappedFilter

public void setWrappedFilter(javax.servlet.Filter filter)
Used in testing to provide a mock wrapped filter

Parameters:
filter - The wrapped filter


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