In this section, we'll see how a filter chain is constructed to handle an incoming request.
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.
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.
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 ...