This annotation specifies the filter.
The following table lists the @WebFilter attributes:
Attribute Name | Functionality |
---|---|
description | This attribute specifies the filter description. |
dispatcherTypes | This attribute specifies the filter adjustment conditions. |
displayName | This attribute specifies the display name. |
filterName | This attribute specifies the filter name. |
initParams | This attribute specifies the initial parameters for filter. |
largeIcon | This attribute specifies the large icons used on the GUI tool. |
servletNames | This attribute specifies the Servlet name of Servlet that performs mapping. |
smallIcon | This attribute specifies the small icons used on the GUI tool. |
urlPatterns | This attribute specifies the URL patterns to be mapped. |
value | This attribute specifies the URL patterns to be mapped. Ignored if specified concurrently with urlPatterns. |
Details of each attribute are as follows: