Package javax.servlet
Interface ServletRegistration
-
- All Superinterfaces:
Registration
- All Known Subinterfaces:
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
addMapping(String... urlPatterns)
Add a mapping.Collection<String>
getMappings()
Get the mappings.String
getRunAsRole()
Get the run as role.-
Methods inherited from interface javax.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
-
-
-
-
Method Detail
-
addMapping
Set<String> addMapping(String... urlPatterns)
Add a mapping.- Parameters:
urlPatterns
- the URL patterns.- Returns:
- the patterns that were already mapped before.
-
getMappings
Collection<String> getMappings()
Get the mappings.- Returns:
- the mappings.
-
getRunAsRole
String getRunAsRole()
Get the run as role.- Returns:
- the run as role.
-
-