FilterMapping

Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor.@invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor.



 

Attributes Summary

urlPattern The url-pattern element contains the url pattern of the mapping.
filter The filter being mapped
servlet An optional servlet that is mapped by a filter mapping.

 

Attribute Details


urlPattern

The url-pattern element contains the url pattern of the mapping. Must follow the rules specified in Section 10 of the Servlet API Specification.

Data type:   String
Default value:   unspecified



filter

The filter being mapped

Data type:  Filter



servlet

An optional servlet that is mapped by a filter mapping. servletName is used to resolve the servlet reference.

Data type:  Servlet