- All Superinterfaces:
Registration
- All Known Subinterfaces:
ServletEnvironment
,ServletRegistration.Dynamic
- All Known Implementing Classes:
DefaultServletEnvironment
The ServletRegistration API.
- Author:
- Manfred Riem ([email protected])
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The ServletRegistration.Dynamic API. -
Method Summary
Modifier and TypeMethodDescriptionaddMapping(String... urlPatterns)
Add a mapping.Returns the mappings.Returns the run as role.Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
-
Method Details
-
addMapping
Add a mapping.- Parameters:
urlPatterns
- the URL patterns.- Returns:
- the patterns that were already mapped before.
-
getMappings
Collection<String> getMappings()Returns the mappings.- Returns:
- the mappings
-
getRunAsRole
String getRunAsRole()Returns the run as role.- Returns:
- the run as role
-