@Target(value=TYPE)
 @Retention(value=RUNTIME)
 @Documented
public @interface WebFilter
This annotation is processed by the container at deployment time, and the corresponding filter applied to the specified URL patterns, servlets, and dispatcher types.
Filter| Modifier and Type | Optional Element and Description | 
|---|---|
boolean | 
asyncSupported
Declares whether the filter supports asynchronous operation mode. 
 | 
java.lang.String | 
description
The description of the filter 
 | 
DispatcherType[] | 
dispatcherTypes
The dispatcher types to which the filter applies 
 | 
java.lang.String | 
displayName
The display name of the filter 
 | 
java.lang.String | 
filterName
The name of the filter 
 | 
WebInitParam[] | 
initParams
The init parameters of the filter 
 | 
java.lang.String | 
largeIcon
The large-icon of the filter 
 | 
java.lang.String[] | 
servletNames
The names of the servlets to which the filter applies. 
 | 
java.lang.String | 
smallIcon
The small-icon of the filter 
 | 
java.lang.String[] | 
urlPatterns
The URL patterns to which the filter applies 
 | 
java.lang.String[] | 
value
The URL patterns to which the filter applies The default value is an empty array. 
 | 
public abstract java.lang.String description
public abstract java.lang.String displayName
public abstract WebInitParam[] initParams
public abstract java.lang.String filterName
public abstract java.lang.String smallIcon
public abstract java.lang.String largeIcon
public abstract java.lang.String[] servletNames
public abstract java.lang.String[] value
public abstract java.lang.String[] urlPatterns
public abstract DispatcherType[] dispatcherTypes
public abstract boolean asyncSupported
true if the filter supports asynchronous operation modeServletRequest.startAsync(), 
ServletRequest.startAsync( jakarta.servlet.ServletRequest,jakarta.servlet.ServletResponse)