Class ResourceFilter

java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.exoplatform.webconferencing.server.filter.ResourceFilter
All Implemented Interfaces:
jakarta.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 final String
    The Constant CACHE_CONTROL.
    protected static final org.exoplatform.services.log.Log
    The Constant LOG.
    protected static final String
    The Constant METHOD_GET.

    Fields inherited from class org.exoplatform.container.web.AbstractFilter

    config, servletContextName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
    protected String
    Version.

    Methods inherited from class org.exoplatform.container.web.AbstractFilter

    afterInit, getContainer, getServletContext, init, requirePortalEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

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

      protected static final String METHOD_GET
      The Constant METHOD_GET.
      See Also:
    • CACHE_CONTROL

      protected static final String CACHE_CONTROL
      The Constant CACHE_CONTROL.
      See Also:
  • Constructor Details

    • ResourceFilter

      public ResourceFilter()
  • Method Details

    • doFilter

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

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

      protected String version()
      Version.
      Returns:
      the string