Class 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
    This Filter supports the exclude urls.

    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
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientCachingFilter

        public ClientCachingFilter()
        Constructor
    • 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 interface javax.servlet.Filter
        Overrides:
        init in class AbstractCacheFilter
        Throws:
        javax.servlet.ServletException
        See Also:
        Filter.init(javax.servlet.FilterConfig)
      • destroy

        public void destroy()