Package javax.servlet
Interface ServletRegistration.Dynamic
- 
- All Superinterfaces:
- Registration,- Registration.Dynamic,- ServletRegistration
 - Enclosing interface:
- ServletRegistration
 
 public static interface ServletRegistration.Dynamic extends ServletRegistration, Registration.Dynamic Interface through which a Servlet registered via one of the addServlet methods on ServletContext may be further configured.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface javax.servlet.RegistrationRegistration.Dynamic
 - 
Nested classes/interfaces inherited from interface javax.servlet.ServletRegistrationServletRegistration.Dynamic
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetLoadOnStartup(int loadOnStartup)Set the loadOnStartup order for the ServletvoidsetMultipartConfig(MultipartConfigElement multipartConfig)Set the multi-part configuration for the associated Servlet.voidsetRunAsRole(java.lang.String roleName)Set the name of the user / group under which the Servlet should be configured to run.java.util.Set<java.lang.String>setServletSecurity(ServletSecurityElement constraint)Add security constraints to this Servlet.- 
Methods inherited from interface javax.servlet.RegistrationgetClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
 - 
Methods inherited from interface javax.servlet.Registration.DynamicsetAsyncSupported
 - 
Methods inherited from interface javax.servlet.ServletRegistrationaddMapping, getMappings, getRunAsRole
 
- 
 
- 
- 
- 
Method Detail- 
setLoadOnStartupvoid setLoadOnStartup(int loadOnStartup) Set the loadOnStartup order for the Servlet- Parameters:
- loadOnStartup- The position in the order the Servlet should be started (higher numbers are started after lower numbers)
 
 - 
setServletSecurityjava.util.Set<java.lang.String> setServletSecurity(ServletSecurityElement constraint) Add security constraints to this Servlet.- Parameters:
- constraint- new security constraints for this Servlet
- Returns:
- urls currently mapped to this registration that are already present in web.xml
 
 - 
setMultipartConfigvoid setMultipartConfig(MultipartConfigElement multipartConfig) Set the multi-part configuration for the associated Servlet. To clear the multi-part configuration specifynullas the new value.- Parameters:
- multipartConfig- The configuration to associate with the Servlet
 
 - 
setRunAsRolevoid setRunAsRole(java.lang.String roleName) Set the name of the user / group under which the Servlet should be configured to run.- Parameters:
- roleName- name of the user / group or- nullif none
 
 
- 
 
-