Package org.exoplatform.container.web
Class AbstractFilter
- java.lang.Object
-
- org.exoplatform.container.web.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 Summary
Fields Modifier and Type Field Description protected javax.servlet.FilterConfigconfigThe filter configurationprotected StringservletContextNameThe Servlet context name
-
Constructor Summary
Constructors Constructor Description AbstractFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterInit(javax.servlet.FilterConfig config)Allows sub-classes to initializeprotected ExoContainergetContainer()protected javax.servlet.ServletContextgetServletContext()voidinit(javax.servlet.FilterConfig config)protected booleanrequirePortalEnvironment()Indicates if it requires that a full portal environment must be set
-
-
-
Field Detail
-
config
protected javax.servlet.FilterConfig config
The filter configuration
-
servletContextName
protected String servletContextName
The Servlet context name
-
-
Method Detail
-
init
public final void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
afterInit
protected void afterInit(javax.servlet.FilterConfig config) throws javax.servlet.ServletExceptionAllows sub-classes to initialize- Parameters:
config- the current filter configuration- Throws:
javax.servlet.ServletException
-
getContainer
protected final ExoContainer 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 javax.servlet.ServletContext getServletContext()
- Returns:
- the current
ServletContext
-
-