Package com.avoka.fc.core.servlet
Class CustomPerformanceFilter
- java.lang.Object
-
- org.apache.click.extras.filter.PerformanceFilter
-
- com.avoka.fc.core.servlet.CustomPerformanceFilter
-
- All Implemented Interfaces:
Filter
public class CustomPerformanceFilter extends org.apache.click.extras.filter.PerformanceFilter
Provides a custom Click Performance Filter which sets additional XSS protection HTTP Headers.- Since:
- 4.3.1
-
-
Field Summary
-
Fields inherited from class org.apache.click.extras.filter.PerformanceFilter
applicationVersionIndicator, cacheMaxAge, compressionEnabled, compressionThreshold, configService, configured, DEFAULT_CACHE_MAX_AGE, excludeDirs, excludeFiles, filterConfig, FOREVER_CACHE_MAX_AGE, includeDirs, includeFiles, MIN_COMPRESSION_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description CustomPerformanceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain)
Perform the filter operation applying any necessary Expire headers and compressing the response content.-
Methods inherited from class org.apache.click.extras.filter.PerformanceFilter
destroy, getApplicationResourceVersionIndicator, getConfigService, getFilterConfig, getResourceVersionIndicator, init, isExcludePath, loadConfiguration, setFilterConfig, setHeaderExpiresCache, stripResourceVersionIndicator, useConfiguredCacheHeader, useForeverCacheHeader, useGzipCompression
-
-
-
-
Method Detail
-
doFilter
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException
Perform the filter operation applying any necessary Expire headers and compressing the response content.- Specified by:
doFilter
in interfaceFilter
- Overrides:
doFilter
in classorg.apache.click.extras.filter.PerformanceFilter
- Parameters:
servletRequest
- the servlet requestservletResponse
- the servlet responsechain
- the filter chain- Throws:
IOException
- if an I/O error occursServletException
- if a servlet error occurs- See Also:
Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
-
-