org.apache.pluto.driver.services.container
Class FilterManagerImpl
java.lang.Object
org.apache.pluto.driver.services.container.FilterManagerImpl
- All Implemented Interfaces:
- FilterManager
public class FilterManagerImpl
- extends java.lang.Object
- implements FilterManager
Manage the initialization and doFilter FilterChainImpl
for the filter which are
declareted in the deployment descriptor.
- Since:
- 05/29/2007
- Version:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_PHASE
protected static final java.lang.String ACTION_PHASE
- See Also:
- Constant Field Values
EVENT_PHASE
protected static final java.lang.String EVENT_PHASE
- See Also:
- Constant Field Values
RENDER_PHASE
protected static final java.lang.String RENDER_PHASE
- See Also:
- Constant Field Values
RESOURCE_PHASE
protected static final java.lang.String RESOURCE_PHASE
- See Also:
- Constant Field Values
FilterManagerImpl
public FilterManagerImpl()
getFilterManager
public static FilterManager getFilterManager()
processFilter
public void processFilter(PortletRequest req,
PortletResponse res,
java.lang.ClassLoader loader,
java.lang.String portletName,
PortletContext portletContext,
java.lang.String lifecycle)
- The processFilter initialize the rest you need and invoke doFilter from FilterChain.
- Specified by:
processFilter
in interface FilterManager
- Parameters:
req
- request for doFilter in the filterChainres
- response for doFilter in the filterChainloader
- Classloader for the filterportletName
- current portletNameportletContext
- current portletcontextlifecycle
- must be ACTION_PHASE, EVENT_PHASE, RENDER_PHASE or RESOURCE_PHASE
addFilterApp
public static boolean addFilterApp(PortletAppDD portletAppDD,
java.lang.String ContextPath)
- Adds the Applications for the filter.
- Parameters:
portletAppDD
- PortletAppDD for iterate over all filter in the map.ContextPath
- needed for the FilterConfig
- Returns:
removeFilterApp
public static void removeFilterApp(java.lang.String ContextPath)
- Parameters:
ContextPath
-
removeAllFilterApps
public static void removeAllFilterApps()
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.