ServletRegistration (Apache Tomcat 7.0.104 API Documentation)

javax.servlet

## Interface ServletRegistration

- All Superinterfaces:
    Registration
  All Known Subinterfaces:
    ServletRegistration.Dynamic
  All Known Implementing Classes:
    ApplicationServletRegistration

      public interface ServletRegistration
      extends Registration

  TODO SERVLET3 - Add comments
  Since:
    Servlet 3.0

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `ServletRegistration.Dynamic`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<String>` | `addMapping(String... urlPatterns)` TODO
    `Collection<String>` | `getMappings()`
    `String` | `getRunAsRole()`

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

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

- - ### Method Detail

    - #### addMapping

          Set<String> addMapping(String... urlPatterns)

      TODO
      Parameters:
        `urlPatterns` - The URL patterns that this Servlet should be mapped to
      Returns:
        TODO
      Throws:
        `IllegalArgumentException` - if urlPattern is null or empty
        `IllegalStateException` - if the associated ServletContext has already been initialised

    - #### getMappings

          Collection<String> getMappings()

    - #### getRunAsRole

          String getRunAsRole()

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