@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.
|
String |
description
The description of the filter
|
DispatcherType[] |
dispatcherTypes
The dispatcher types to which the filter applies
|
String |
displayName
The display name of the filter
|
String |
filterName
The name of the filter
|
WebInitParam[] |
initParams
The init parameters of the filter
|
String |
largeIcon
The large-icon of the filter
|
String[] |
servletNames
The names of the servlets to which the filter applies.
|
String |
smallIcon
The small-icon of the filter
|
String[] |
urlPatterns
The URL patterns to which the filter applies
|
String[] |
value
The URL patterns to which the filter applies
The default value is an empty array.
|
public abstract String description
public abstract String displayName
public abstract WebInitParam[] initParams
public abstract String filterName
public abstract String smallIcon
public abstract String largeIcon
public abstract String[] servletNames
public abstract String[] value
public abstract String[] urlPatterns
public abstract DispatcherType[] dispatcherTypes
public abstract boolean asyncSupported
true
if the filter supports asynchronous operation modeServletRequest.startAsync()
,
ServletRequest.startAsync(ServletRequest,
ServletResponse)
Copyright © 1999-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.