|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.driver.services.container.FilterChainImpl
public class FilterChainImpl
A FilterChain
is an object provided by the portlet container
to the developer giving a view into the invocation chain of a
filtered request for a portlet. Filters use the FilterChain
to invoke the next filter in the chain, or if the calling filter is the
last filter in the chain, to invoke the portlet at the end of the chain.
Constructor Summary | |
---|---|
FilterChainImpl(java.lang.String appName)
|
Method Summary | |
---|---|
void |
addFilter(java.lang.String className,
FilterConfigImpl filterConfig,
java.util.List<java.lang.String> portletNames,
java.util.List lifecycle)
Adds the filter to the filterChain |
void |
doFilter(ActionRequest request,
ActionResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked. |
void |
doFilter(EventRequest request,
EventResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked. |
void |
doFilter(RenderRequest request,
RenderResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked. |
void |
doFilter(ResourceRequest request,
ResourceResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked. |
java.lang.String |
getAppName()
Gets the application name. |
int |
getIndex()
|
void |
setFilterData(java.lang.ClassLoader loader,
java.lang.String portletName,
PortletContext portletContext)
The filterData has do be set before call doFilter. |
void |
setIndex(int index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterChainImpl(java.lang.String appName)
Method Detail |
---|
public void setFilterData(java.lang.ClassLoader loader, java.lang.String portletName, PortletContext portletContext)
loader
- Classloader of the appl.portletName
- portletContext
- public void addFilter(java.lang.String className, FilterConfigImpl filterConfig, java.util.List<java.lang.String> portletNames, java.util.List lifecycle)
className
- Path to the filterfilterConfig
- portletNames
- lifecycle
- public void doFilter(ActionRequest request, ActionResponse response) throws java.io.IOException, PortletException
FilterChain
doFilter
in interface FilterChain
request
- the current action request.response
- the current action response
java.io.IOException
- if an IO error occured in the filter processing
PortletException
- if a portlet exception occured in the filter processingpublic void doFilter(EventRequest request, EventResponse response) throws java.io.IOException, PortletException
FilterChain
doFilter
in interface FilterChain
request
- the current event request.response
- the current event response.
java.io.IOException
- if an IO error occured in the filter processing
PortletException
- if a portlet exception occured in the filter processingpublic void doFilter(RenderRequest request, RenderResponse response) throws java.io.IOException, PortletException
FilterChain
doFilter
in interface FilterChain
request
- the current render request.response
- the current render response.
java.io.IOException
- if an IO error occured in the filter processing
PortletException
- if a portlet exception occured in the filter processingpublic void doFilter(ResourceRequest request, ResourceResponse response) throws java.io.IOException, PortletException
FilterChain
doFilter
in interface FilterChain
request
- the current resource request.response
- the current resource response.
java.io.IOException
- if an IO error occured in the filter processing
PortletException
- if a portlet exception occured in the filter processingpublic java.lang.String getAppName()
public int getIndex()
public void setIndex(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |