@Target(TYPE)
@Retention(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 | 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
|
WebInitParam[] initParams
java.lang.String[] servletNames
DispatcherType[] dispatcherTypes
Copyright © 1999-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.