Class AbstractFilter

java.lang.Object
org.exoplatform.container.web.AbstractFilter
All Implemented Interfaces:
jakarta.servlet.Filter
Direct Known Subclasses:
PortalContainerFilter

public abstract class AbstractFilter extends Object implements jakarta.servlet.Filter
This class is the root class of all the Filters that require an ExoContainer Created by The eXo Platform SAS Author : Nicolas Filotto nicolas.filotto@exoplatform.com
  • Field Details

    • config

      protected jakarta.servlet.FilterConfig config
      The filter configuration
    • servletContextName

      protected String servletContextName
      The Servlet context name
  • Constructor Details

    • AbstractFilter

      public AbstractFilter()
  • Method Details

    • init

      public final void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • afterInit

      protected void afterInit(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Allows sub-classes to initialize
      Parameters:
      config - the current filter configuration
      Throws:
      jakarta.servlet.ServletException
    • getContainer

      protected final ExoContainer getContainer()
      Returns:
      Gives the ExoContainer that fits best with the current context
    • requirePortalEnvironment

      protected boolean requirePortalEnvironment()
      Indicates if it requires that a full portal environment must be set
      Returns:
      true if it requires the portal environment false otherwise.
    • getServletContext

      protected jakarta.servlet.ServletContext getServletContext()
      Returns:
      the current ServletContext