Package org.exoplatform.web.filter
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterInit(jakarta.servlet.FilterConfig config) voiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) This filter callsdoFilterof theExtensibleFilterof the current eXo container if it cans be found otherwise it releases filterMethods inherited from class org.exoplatform.container.web.AbstractFilter
getContainer, getServletContext, init, requirePortalEnvironment
-
Constructor Details
-
GenericFilter
public GenericFilter()
-
-
Method Details
-
destroy
public void destroy()- See Also:
-
afterInit
protected void afterInit(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException - Overrides:
afterInitin classorg.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 callsdoFilterof theExtensibleFilterof the current eXo container if it cans be found otherwise it releases filter- Throws:
IOExceptionjakarta.servlet.ServletException
-