- All Superinterfaces:
Registration
,Registration.Dynamic
,ServletRegistration
- All Known Subinterfaces:
ServletEnvironment
- All Known Implementing Classes:
DefaultServletEnvironment
- Enclosing interface:
- ServletRegistration
public static interface ServletRegistration.Dynamic
extends ServletRegistration, Registration.Dynamic
The ServletRegistration.Dynamic API.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
Registration.Dynamic
Nested classes/interfaces inherited from interface jakarta.servlet.ServletRegistration
ServletRegistration.Dynamic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLoadOnStartup(int loadOnStartup)
Set the load on startup.void
setMultipartConfig(MultipartConfigElement multipartConfig)
Set the multipart config element.void
setRunAsRole(String role)
Set the run as role.setServletSecurity(ServletSecurityElement constraint)
Set the servlet security.Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
Methods inherited from interface jakarta.servlet.Registration.Dynamic
setAsyncSupported
Methods inherited from interface jakarta.servlet.ServletRegistration
addMapping, getMappings, getRunAsRole
-
Method Details
-
setLoadOnStartup
void setLoadOnStartup(int loadOnStartup)Set the load on startup.- Parameters:
loadOnStartup
- the load on startup.
-
setServletSecurity
Set the servlet security.- Parameters:
constraint
- the constraint.- Returns:
- the already mapped URL patterns.
-
setMultipartConfig
Set the multipart config element.- Parameters:
multipartConfig
- the multipart config element.
-
setRunAsRole
Set the run as role.- Parameters:
role
- the role.
-