|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.portals.bridges.portletfilter.PortletFilterChain
public class PortletFilterChain
A PortletFilterChain is an object provided to the developer giving a view into the invocation chain of a filtered request for a resource. PortletFilters use the PortletFilterChain to invoke the next filter in the chain, or if the calling filter is the last filter in the chain, to invoke the resource at the end of the chain.
Field Summary | |
---|---|
private PortletFilterConfig[] |
filters
PortletFilters. |
static int |
INCREMENT
|
private static org.apache.commons.logging.Log |
log
|
private int |
n
The int which gives the current number of filters in the chain. |
private javax.portlet.Portlet |
portlet
The portlet instance to be executed by this chain. |
static String |
PORTLET_FILTERS
|
private ThreadLocal |
processActionPosition
The int which is used to maintain the current position in the filter chain. |
private ThreadLocal |
renderPosition
The int which is used to maintain the current position in the filter chain. |
Constructor Summary | |
---|---|
PortletFilterChain(javax.portlet.PortletConfig config)
|
Method Summary | |
---|---|
void |
addPortletFilter(PortletFilterConfig filterConfig)
Add a filter to the set of filters that will be executed in this chain. |
void |
processActionFilter(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Causes the next filter for processActionFilter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. |
void |
release()
Release references to the filters and wrapper executed by this chain. |
void |
renderFilter(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Causes the next filter for renderFilter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. |
void |
reset()
Reset this filter chain |
void |
setPortlet(javax.portlet.Portlet portlet)
Set Portlet instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
public static final int INCREMENT
public static final String PORTLET_FILTERS
private PortletFilterConfig[] filters
private ThreadLocal renderPosition
private ThreadLocal processActionPosition
private int n
private javax.portlet.Portlet portlet
Constructor Detail |
---|
public PortletFilterChain(javax.portlet.PortletConfig config)
Method Detail |
---|
public void renderFilter(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
request
- response
-
javax.portlet.PortletException
IOException
public void processActionFilter(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
request
- response
-
javax.portlet.PortletException
IOException
public void addPortletFilter(PortletFilterConfig filterConfig)
filterConfig
- The PortletFilterConfig for the portlet to be executedpublic void reset()
public void release()
public void setPortlet(javax.portlet.Portlet portlet)
portlet
- The portlet to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |