@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface WebServlet
Annotation used to declare a servlet.
This annotation is processed by the container at deployment time, and the corresponding servlet made available at the specified URL patterns.
Servlet
Optional Element Summary | |
---|---|
boolean |
asyncSupported
Declares whether the servlet supports asynchronous operation mode. |
java.lang.String |
description
The description of the servlet |
java.lang.String |
displayName
The display name of the servlet |
WebInitParam[] |
initParams
The init parameters of the servlet |
java.lang.String |
largeIcon
The large-icon of the servlet |
int |
loadOnStartup
The load-on-startup order of the servlet |
java.lang.String |
name
The name of the servlet |
java.lang.String |
smallIcon
The small-icon of the servlet |
java.lang.String[] |
urlPatterns
The URL patterns of the servlet |
java.lang.String[] |
value
The URL patterns of the servlet |
public abstract java.lang.String name
public abstract java.lang.String[] value
public abstract java.lang.String[] urlPatterns
public abstract int loadOnStartup
public abstract WebInitParam[] initParams
public abstract boolean asyncSupported
public abstract java.lang.String smallIcon
public abstract java.lang.String largeIcon
public abstract java.lang.String description
public abstract java.lang.String displayName