Home

 

Filters

Filters are objects that can transform a request or modify a response. They can process the request before it reaches a servlet, and/or process the response leaving a servlet before it is finally returned to the client. A filter can examine a request before a servlet is called and can modify the request and response headers and data by providing a customized version of the request or response object that wraps the real request or response. The deployment descriptor for a Web application is used to configure specific filters for particular servlets or JSPs. Filters can also be linked together in chains.

ibm.com/redbooks