Class AbstractFilter

  • All Implemented Interfaces:
    javax.servlet.Filter
    Direct Known Subclasses:
    PortalContainerFilter

    public abstract class AbstractFilter
    extends Object
    implements javax.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 Detail

      • config

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

        protected String servletContextName
        The Servlet context name
    • Constructor Detail

      • AbstractFilter

        public AbstractFilter()
    • Method Detail

      • init

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

        protected void afterInit​(javax.servlet.FilterConfig config)
                          throws javax.servlet.ServletException
        Allows sub-classes to initialize
        Parameters:
        config - the current filter configuration
        Throws:
        javax.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 javax.servlet.ServletContext getServletContext()
        Returns:
        the current ServletContext