|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A filter is an object that performs filtering tasks on either the request to a resource (a portlet), or on the response from a resource, or both. Filters perform filtering in the renderFilter and processActionFilter method. Every Filter has access to a PortletFilterConfig object from which it can obtain its initialization parameters, a reference to the PortletConfig which it can use, for example, to load resources needed for filtering tasks. Filters are configured in the deployment descriptor of a portlet(portlet.xml).
Method Summary | |
void |
destroy()
Called by destroy method of FilterPortlet to destroy this portlet filter. |
void |
init(PortletFilterConfig filterConfig)
Called by init method of FilterPortlet to initialize this portlet filter. |
void |
processActionFilter(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
PortletFilterChain chain)
Called by render method of FilterPortlet to wrap the request when it has a multipart content. |
void |
renderFilter(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
PortletFilterChain chain)
Called by render method of FilterPortlet to put tags, such as <style>, into <head>. |
Method Detail |
public void init(PortletFilterConfig filterConfig) throws javax.portlet.PortletException
filterConfig
-
javax.portlet.PortletException
public void renderFilter(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, PortletFilterChain chain) throws javax.portlet.PortletException, IOException
request
- response
- chain
- PortletFilterChain instance
javax.portlet.PortletException
IOException
public void processActionFilter(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, PortletFilterChain chain) throws javax.portlet.PortletException, IOException
request
- response
- chain
- PortletFilterChain instance
javax.portlet.PortletException
IOException
public void destroy()
javax.portlet.PortletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |