Annotation Interface ServletBean
Variant of
WebServlet
applicable to factory methods.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Declares whether the servlet supports asynchronous operation mode.jakarta.servlet.annotation.WebInitParam[]
The init parameters of the servlet.int
The load-on-startup order of the servlet.String[]
The URL patterns of the servlet.String[]
The URL patterns of the servlet.
-
Element Details
-
name
The name of the servlet.- Returns:
- the name of the servlet
-
-
-
value
The URL patterns of the servlet.- Returns:
- the URL patterns of the servlet
- Default:
- {}
-
urlPatterns
@AliasFor(annotation=jakarta.servlet.annotation.WebServlet.class, member="value") String[] urlPatternsThe URL patterns of the servlet.- Returns:
- the URL patterns of the servlet
- Default:
- {}
-
loadOnStartup
@AliasFor(annotation=jakarta.servlet.annotation.WebServlet.class, member="loadOnStartup") int loadOnStartupThe load-on-startup order of the servlet.- Returns:
- the load-on-startup order of the servlet
- Default:
- -1
-
initParams
@AliasFor(annotation=jakarta.servlet.annotation.WebServlet.class, member="initParams") jakarta.servlet.annotation.WebInitParam[] initParamsThe init parameters of the servlet.- Returns:
- the init parameters of the servlet
- Default:
- {}
-
asyncSupported
@AliasFor(annotation=jakarta.servlet.annotation.WebServlet.class, member="asyncSupported") boolean asyncSupportedDeclares whether the servlet supports asynchronous operation mode.- Returns:
true
if the servlet supports asynchronous operation mode- See Also:
-
ServletRequest.startAsync()
ServletRequest.startAsync(jakarta.servlet.ServletRequest,jakarta.servlet.ServletResponse)
- Default:
- false
-