@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface WebFilter
Filter
. Servlet
s and
DispatcherType
s.value
or
urlPattern
attribute of the annotation, but not both.value
attribute is recommended for use when the URL pattern is
the only attribute being set, otherwise the urlPattern
attribute
should be used.Filter
.
E.g.
@WebFilter("/path/*")
public class AnExampleFilter implements Filter { ...
Modifier and Type | Optional Element and Description |
---|---|
boolean |
asyncSupported |
String |
description |
DispatcherType[] |
dispatcherTypes |
String |
displayName |
String |
filterName |
WebInitParam[] |
initParams |
String |
largeIcon |
String[] |
servletNames |
String |
smallIcon |
String[] |
urlPatterns |
String[] |
value
A convenience method, to allow extremely simple annotation of a class.
|
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
urlPatterns()
public abstract String[] urlPatterns
public abstract DispatcherType[] dispatcherTypes
public abstract boolean asyncSupported
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.