O'Reilly logo

Tomcat 6 Developer's Guide by Damodar Chetty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filters

In this section, we'll see how a filter chain is constructed to handle an incoming request.

Filters

A FilterDef represents the<filter> element in the web application deployment descriptor. It describes a filter in terms of its name, its implementation class, and initialization parameters.

A FilterMap, on the other hand, represents the<filter-mapping> element. This element describes the servlet names, URL patterns, and dispatcher mappings that cause the filter to be engaged.

A FilterMap instance defines when a filter will be invoked. By default, a filter is invoked for incoming requests. However, you can specify that a filter should be invoked even ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required