Package org.wso2.carbon.ui.filters.cache
Class ContentTypeBasedCachePreventionFilter
java.lang.Object
org.wso2.carbon.ui.filters.cache.AbstractCachePreventionFilter
org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter
- All Implemented Interfaces:
javax.servlet.Filter
This filter implements browser/proxy cache prevention based on content types.
That is done by whitelisting or blacklisting a defined set of content type
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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(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
-
Constructor Details
-
ContentTypeBasedCachePreventionFilter
public ContentTypeBasedCachePreventionFilter()
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException Description copied from class:AbstractCachePreventionFilter- Specified by:
doFilterin interfacejavax.servlet.Filter- Specified by:
doFilterin classAbstractCachePreventionFilter- Throws:
IOExceptionjavax.servlet.ServletException
-