The Filter interface is used by the
FilterHandler
to examine and dynamically rewrite the contents of web pages obtained from
some source before returning that page to the client.
Sample filter to use url's instead of cookies for sessions.
Package sunlabs.brazil.filter Description
Filters are a type of handler, used by the
filterHandler
that can modify content
after it has been obtained by another handler.
A filter is a special type of handler that has two additional
methods, filter and shouldFilter.
Normally, once a handler generates the content for a request, the
content is delivered to the client, and the request is finished.
Although this allows for a choice in the manner in which the content is
obtained, nothing can be done to modify that content before it is
transmitted to the client.
The filterHandler
arranges for the content generated by another handler (or handlers) to
be captured, allowing it to be filtered before it is sent to
the client.