@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 |
java.lang.String |
description |
DispatcherType[] |
dispatcherTypes |
java.lang.String |
displayName |
java.lang.String |
filterName |
WebInitParam[] |
initParams |
java.lang.String |
largeIcon |
java.lang.String[] |
servletNames |
java.lang.String |
smallIcon |
java.lang.String[] |
urlPatterns |
java.lang.String[] |
value
A convenience method, to allow extremely simple annotation of a class.
|
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
urlPatterns()
public abstract java.lang.String[] urlPatterns
public abstract DispatcherType[] dispatcherTypes
public abstract boolean asyncSupported
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.