Class ClientCachingFilter

java.lang.Object
de.businesscode.bcdui.web.cacheControl.AbstractCacheFilter
de.businesscode.bcdui.web.cacheControl.ClientCachingFilter
All Implemented Interfaces:
jakarta.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
  • Constructor Details

    • ClientCachingFilter

      public ClientCachingFilter()
      Constructor
  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
      See Also:
      • Filter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Overrides:
      init in class AbstractCacheFilter
      Throws:
      jakarta.servlet.ServletException
      See Also:
      • Filter.init(jakarta.servlet.FilterConfig)
    • destroy

      public void destroy()