Interface ServletRegistration

All Superinterfaces:
Registration
All Known Subinterfaces:
ServletEnvironment, ServletRegistration.Dynamic
All Known Implementing Classes:
DefaultServletEnvironment

public interface ServletRegistration
extends Registration
The ServletRegistration API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • addMapping

      java.util.Set<java.lang.String> addMapping​(java.lang.String... urlPatterns)
      Add a mapping.
      Parameters:
      urlPatterns - the URL patterns.
      Returns:
      the patterns that were already mapped before.
    • getMappings

      java.util.Collection<java.lang.String> getMappings()
      Get the mappings.
      Returns:
      the mappings.
    • getRunAsRole

      java.lang.String getRunAsRole()
      Get the run as role.
      Returns:
      the run as role.