org.apache.pluto.driver.services.container
Class FilterManagerImpl

java.lang.Object
  extended by 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

Field Summary
protected static java.lang.String ACTION_PHASE
           
protected static java.lang.String EVENT_PHASE
           
protected static java.lang.String RENDER_PHASE
           
protected static java.lang.String RESOURCE_PHASE
           
 
Constructor Summary
FilterManagerImpl()
           
 
Method Summary
static boolean addFilterApp(PortletAppDD portletAppDD, java.lang.String ContextPath)
          Adds the Applications for the filter.
static FilterManager getFilterManager()
           
 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.
static void removeAllFilterApps()
           
static void removeFilterApp(java.lang.String ContextPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FilterManagerImpl

public FilterManagerImpl()
Method Detail

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 filterChain
res - response for doFilter in the filterChain
loader - Classloader for the filter
portletName - current portletName
portletContext - current portletcontext
lifecycle - 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-2010 Apache Software Foundation. All Rights Reserved.