Class ResourceFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.exoplatform.web.filter.Filter

    public class ResourceFilter
    extends org.exoplatform.container.web.AbstractFilter
    implements org.exoplatform.web.filter.Filter
    Filter updates request to resources with proper HTTP headers (for caching etc.).
    Created by The eXo Platform SAS
    Version:
    $Id: ResourceFilter.java 00000 Mar 14, 2017 pnedonosko $
    Author:
    Peter Nedonosko
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static String CACHE_CONTROL
      The Constant CACHE_CONTROL.
      protected static org.exoplatform.services.log.Log LOG
      The Constant LOG.
      protected static String METHOD_GET
      The Constant METHOD_GET.
      • Fields inherited from class org.exoplatform.container.web.AbstractFilter

        config, servletContextName
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceFilter()  
    • Field Detail

      • LOG

        protected static final org.exoplatform.services.log.Log LOG
        The Constant LOG.
    • Constructor Detail

      • ResourceFilter

        public ResourceFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Specified by:
        doFilter in interface org.exoplatform.web.filter.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • version

        protected String version()
        Version.
        Returns:
        the string