- 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 javax.servlet.ServletRegistration
ServletRegistration.Dynamic
-
Method Summary
Modifier and Type Method Description void
setLoadOnStartup(int loadOnStartup)
Set the load on startup.void
setMultipartConfig(MultipartConfigElement multipartConfig)
Set the multipart config element.void
setRunAsRole(java.lang.String role)
Set the run as role.java.util.Set<java.lang.String>
setServletSecurity(ServletSecurityElement constraint)
Set the servlet security.Methods inherited from interface javax.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
Methods inherited from interface javax.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
void setRunAsRole(java.lang.String role)Set the run as role.- Parameters:
role
- the role.
-