Class ClientCachingFilter
- java.lang.Object
-
- de.businesscode.bcdui.web.cacheControl.AbstractCacheFilter
-
- de.businesscode.bcdui.web.cacheControl.ClientCachingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ClientCachingFilter extends AbstractCacheFilter
ClientCachingFilter implements client side caching.
This Filter set expires value for the within the init-parameters declared resource types.
The value is depends on the values from init-param.
Expected value must be of the type:- ExpiresAbsTime: for absolute time
- ExpiresAbsDow: for absolute day of the week
- ExpiresAbsDatetime: for absolute date and time
- ExpiresRelDays: for relative day
- ExpiresRelTime: for relative time
- CacheRequestDirective: for native HTTP1.1 Cache-Control string
To exclude URLs (using starts-with matching method) add a space separated list of tokens to the parameter ExcludeUrls To exclude extensions from the excluded URLs (using ends-with matching method) add a space separated list of tokens to the parameter ExtensionsRestriction, so that all extensions found in ExtensionsRestriction are re-included
The parameter ExcludeExtensions is a pendant to ExcludeUrls parameter and allows specific extensions to be excluded from caching, (using ends-with matching method). Extenions defined here are of higher precedence than ExcludeUrls / ExtensionsRestriction group
For further information please consult your BCD-UI documentation
-
-
Constructor Summary
Constructors Constructor Description ClientCachingFilter()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
-
Methods inherited from class de.businesscode.bcdui.web.cacheControl.AbstractCacheFilter
getDefinedExpires, getExpiresValue
-
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
- See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classAbstractCacheFilter
- Throws:
javax.servlet.ServletException
- See Also:
Filter.init(javax.servlet.FilterConfig)
-
destroy
public void destroy()
-
-