HeaderFilter is an object that performs filtering
tasks on either the header request to a portlet, or on the header response from
a portlet, or both.
Filters perform filtering in the doFilter method. Every Filter has
access to a FilterConfig object from which it can obtain
its initialization parameters, a reference to the PortletContext
which it can use, for example, to load resources needed for filtering tasks.
Filters are configured in the portlet deployment descriptor of a portlet application.
| Modifier and Type | Method and Description |
|---|---|
| public void | doFilter(HeaderRequest
the current header request request, HeaderResponse the current header response response, HeaderFilterChain the remaining filter chain chain)
The
doFilter method of the Filter is called by the
portlet container each time a header request/response pair is passed
through the chain due to a client request for a portlet method
at the end of the chain. |
| doFilter | back to summary |
|---|---|
| public void doFilter(HeaderRequest request, HeaderResponse response, HeaderFilterChain chain) throws IOException, PortletException
The
doFilter method of the Filter is called by the
portlet container each time a header request/response pair is passed
through the chain due to a client request for a portlet method
at the end of the chain.
The
The
| |