- 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])
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ServletRegistration.Dynamic
The ServletRegistration.Dynamic API. -
Method Summary
Modifier and Type Method Description java.util.Set<java.lang.String>
addMapping(java.lang.String... urlPatterns)
Add a mapping.java.util.Collection<java.lang.String>
getMappings()
Get the mappings.java.lang.String
getRunAsRole()
Get the run as role.Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
-
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.
-