Package org.exoplatform.container.web
Class PortalContainerFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.exoplatform.container.web.PortalContainerFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
This filter will allow to prevent to any accesses to a web application corresponding to a
PortalContainer that has been disabled.
Created by The eXo Platform SAS
Author : Nicolas Filotto
nicolas.filotto@exoplatform.com
8 juil. 2010-
Field Summary
Fields inherited from class org.exoplatform.container.web.AbstractFilter
config, servletContextName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) protected voidonPortalContainerDisabled(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) Allow the sub classed to execute a task when a user try to access to a web application corresponding to aPortalContainerthat has been disabled.Methods inherited from class org.exoplatform.container.web.AbstractFilter
afterInit, getContainer, getServletContext, init, requirePortalEnvironment
-
Constructor Details
-
PortalContainerFilter
public PortalContainerFilter()
-
-
Method Details
-
destroy
public void destroy()- See Also:
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException- See Also:
-
onPortalContainerDisabled
protected void onPortalContainerDisabled(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException Allow the sub classed to execute a task when a user try to access to a web application corresponding to aPortalContainerthat has been disabled.- Parameters:
request- theServletRequestresponse- theServletResponseresponse- theFilterChain- Throws:
IOExceptionjakarta.servlet.ServletException
-