@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface WebServlet
This annotation is processed by the container at deployment time, and the corresponding servlet made available at the specified URL patterns.
Servlet
Modifier and Type | Optional Element and Description |
---|---|
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
true
if the servlet supports asynchronous operation modeServletRequest.startAsync()
,
ServletRequest.startAsync( javax.servlet.ServletRequest,javax.servlet.ServletResponse)
public abstract java.lang.String smallIcon
public abstract java.lang.String largeIcon