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.
- Since:
- Servlet 3.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Declares whether the servlet supports asynchronous operation mode.The description of the servletThe display name of the servletThe init parameters of the servletThe large-icon of the servletint
The load-on-startup order of the servletThe name of the servletThe small-icon of the servletString[]
The URL patterns of the servletString[]
The URL patterns of the servlet
-
Element Details
-
name
-
value
-
urlPatterns
String[] urlPatternsThe URL patterns of the servlet- Returns:
- the URL patterns of the servlet
- Default:
{}
-
loadOnStartup
int loadOnStartupThe load-on-startup order of the servlet- Returns:
- the load-on-startup order of the servlet
- Default:
-1
-
initParams
WebInitParam[] initParamsThe init parameters of the servlet- Returns:
- the init parameters of the servlet
- Default:
{}
-
asyncSupported
boolean asyncSupportedDeclares whether the servlet supports asynchronous operation mode.- Returns:
true
if the servlet supports asynchronous operation mode- See Also:
- Default:
false
-
smallIcon
-
largeIcon
-
description
String descriptionThe description of the servlet- Returns:
- the description of the servlet
- Default:
""
-
displayName
String displayNameThe display name of the servlet- Returns:
- the display name of the servlet
- Default:
""
-