org.exoplatform.frameworks.jcr.web
Class PortalContainerInitializedFilter
java.lang.Object
org.exoplatform.frameworks.jcr.web.PortalContainerInitializedFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class PortalContainerInitializedFilter
- extends java.lang.Object
- implements javax.servlet.Filter
Created by The eXo Platform SAS .
Servlet Filter for initialization PortalContainer instance in following way: - try to get current
PortalContainer instance using ExoContainerContext.getContainerByName(contextName) - if not found
try to get RootContainer instance using ExoContainerContext.getTopContainer() and then create
PortalContainer after it - if neither Portal nor Root Container found (possible if there is
instantiated StandaloneContainer) throws ServletException
- Version:
- $Id: PortalContainerInitializedFilter.java 35179 2009-08-07 13:58:20Z pnedonosko $
- Author:
- Gennady Azarenkov
|
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
initializes PortalContainer instance. |
void |
init(javax.servlet.FilterConfig config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalContainerInitializedFilter
public PortalContainerInitializedFilter()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- initializes PortalContainer instance.
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException- See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse,
javax.servlet.FilterChain)
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Filter
- See Also:
Filter.destroy()
Copyright © 2010 eXo Platform SAS. All Rights Reserved.