public interface ServletRegistration extends Registration
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServletRegistration.Dynamic
Interface through which a Servlet registered via one of the addServlet
methods on ServletContext may be further configured.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
addMapping(java.lang.String... urlPatterns)
Adds a servlet mapping with the given URL patterns for the Servlet
represented by this ServletRegistration.
|
java.util.Collection<java.lang.String> |
getMappings()
Gets the currently available mappings of the Servlet represented by this
ServletRegistration.
|
java.lang.String |
getRunAsRole() |
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParametersjava.util.Set<java.lang.String> addMapping(java.lang.String... urlPatterns)
urlPatterns - The URL patterns that this Servlet should be mapped tojava.lang.IllegalArgumentException - if urlPattern is null or emptyjava.lang.IllegalStateException - if the associated ServletContext has
already been initialisedjava.util.Collection<java.lang.String> getMappings()
java.lang.String getRunAsRole()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.