Package org.exoplatform.container.web
Class AbstractFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
- Direct Known Subclasses:
PortalContainerFilter
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 Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.servlet.FilterConfigThe filter configurationprotected StringThe Servlet context name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterInit(jakarta.servlet.FilterConfig config) Allows sub-classes to initializeprotected final ExoContainerprotected jakarta.servlet.ServletContextfinal voidinit(jakarta.servlet.FilterConfig config) protected booleanIndicates if it requires that a full portal environment must be setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Filter
destroy, doFilter
-
Field Details
-
config
protected jakarta.servlet.FilterConfig configThe filter configuration -
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:
initin interfacejakarta.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
- Returns:
- Gives the
ExoContainerthat fits best with the current context
-
requirePortalEnvironment
protected boolean requirePortalEnvironment()Indicates if it requires that a full portal environment must be set- Returns:
trueif it requires the portal environmentfalseotherwise.
-
getServletContext
protected jakarta.servlet.ServletContext getServletContext()- Returns:
- the current
ServletContext
-