Package org.wso2.carbon.ui.filters.cache
Class URLBasedCachePreventionFilter
- java.lang.Object
-
- org.wso2.carbon.ui.filters.cache.AbstractCachePreventionFilter
-
- org.wso2.carbon.ui.filters.cache.URLBasedCachePreventionFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class URLBasedCachePreventionFilter extends AbstractCachePreventionFilter
This filter implements browser/proxy cache prevention based on URLs. That is done by whitelisting or blacklisting a defined set of URL patterns. It would prevent sensitive information being cached on web browsers and intermediate network devices that adhere to protocols HTTP 1.0 through HTTP 1.1. In order to accommodate future modifications to protocol specifications and introduction of custom cache prevention headers and values, the filter can also utilize headers and values that are defined in the web.xml file.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description URLBasedCachePreventionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)-
Methods inherited from class org.wso2.carbon.ui.filters.cache.AbstractCachePreventionFilter
applyCachePreventionHeaders, canApplyCachePreventionHeaders, destroy, init, initHeaders, initPatternsAndAction
-
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Specified by:
doFilterin classAbstractCachePreventionFilter- Throws:
IOExceptionjavax.servlet.ServletException
-
-