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.ServletRegistration

      `ServletRegistration.Dynamic`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setLoadOnStartup(int loadOnStartup)`
    `void` | `setMultipartConfig(MultipartConfigElement multipartConfig)`
    `void` | `setRunAsRole(java.lang.String roleName)`
    `java.util.Set<java.lang.String>` | `setServletSecurity(ServletSecurityElement constraint)`

    - ### Methods inherited from interface javax.servlet.ServletRegistration

      `addMapping, getMappings, getRunAsRole`

    - ### Methods inherited from interface javax.servlet.Registration.Dynamic

      `setAsyncSupported`

    - ### Methods inherited from interface javax.servlet.Registration

      `getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters`

- - ### Method Detail

    - #### setLoadOnStartup

          void setLoadOnStartup(int loadOnStartup)

    - #### setServletSecurity

          java.util.Set<java.lang.String> setServletSecurity(ServletSecurityElement constraint)

    - #### setMultipartConfig

          void setMultipartConfig(MultipartConfigElement multipartConfig)

    - #### setRunAsRole

          void setRunAsRole(java.lang.String roleName)

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.