Class HeadersPageCachingFilter

    • Constructor Detail

      • HeadersPageCachingFilter

        public HeadersPageCachingFilter()
    • Method Detail

      • doInit

        public void doInit​(javax.servlet.FilterConfig filterConfig)
        Overrides:
        doInit in class net.sf.ehcache.constructs.web.filter.CachingFilter
      • isCacheEnable

        public boolean isCacheEnable()
        Gets the current cache status.
        Specified by:
        isCacheEnable in interface CacheableService
        Returns:
        true if enable, otherwise false
      • getCacheSize

        public int getCacheSize()
        Gets the number of item currently in the cache.
        Specified by:
        getCacheSize in interface CacheableService
        Returns:
        the number of item currently in the cache.
      • getName

        public String getName()
        Returns the Service name
        Specified by:
        getName in interface LuteceService
        Returns:
        The name as a String
      • enableCache

        public void enableCache​(boolean bEnable)
        Enable the cache
        Specified by:
        enableCache in interface CacheableService
        Parameters:
        bEnable - true to enable, false to disable
      • getMaxElements

        public int getMaxElements()
        Returns maximum elements accepted into the cache
        Specified by:
        getMaxElements in interface CacheableService
        Returns:
        The max elements
      • getTimeToLive

        public long getTimeToLive()
        Returns the time to live for objects in the cache
        Specified by:
        getTimeToLive in interface CacheableService
        Returns:
        The time to live in seconds
      • getMemorySize

        public long getMemorySize()
        Return the memory size
        Specified by:
        getMemorySize in interface CacheableService
        Returns:
        the memory size