Class GenericFilter

java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.exoplatform.web.filter.GenericFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class GenericFilter extends org.exoplatform.container.web.AbstractFilter
This filter allows the rest of the platform to add their own filters without changing the web.xml file. It is based on ExtensibleFilter which is a component that supports plugin. Created by The eXo Platform SAS Author : Nicolas Filotto nicolas.filotto@exoplatform.com 25 sept. 2009
  • Field Summary

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

    config, servletContextName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    afterInit(jakarta.servlet.FilterConfig config)
     
    void
     
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
    This filter calls doFilter of the ExtensibleFilter of the current eXo container if it cans be found otherwise it releases filter

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

    getContainer, getServletContext, init, requirePortalEnvironment

    Methods inherited from class java.lang.Object

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

    • GenericFilter

      public GenericFilter()
  • Method Details

    • destroy

      public void destroy()
      See Also:
      • Filter.destroy()
    • afterInit

      protected void afterInit(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Overrides:
      afterInit in class org.exoplatform.container.web.AbstractFilter
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      This filter calls doFilter of the ExtensibleFilter of the current eXo container if it cans be found otherwise it releases filter
      Throws:
      IOException
      jakarta.servlet.ServletException