|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface ServletRegistration
Interface through which a Servlet may be further configured.
| 嵌套类摘要 | |
|---|---|
static interface |
ServletRegistration.Dynamic
Interface through which a Servlet registered via one of the
addServlet methods on ServletContext may be further
configured. |
| 方法摘要 | |
|---|---|
Set<String> |
addMapping(String... urlPatterns)
Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration. |
Collection<String> |
getMappings()
Gets the currently available mappings of the Servlet represented by this ServletRegistration. |
String |
getRunAsRole()
Gets the name of the runAs role of the Servlet represented by this ServletRegistration. |
| 从接口 javax.servlet.Registration 继承的方法 |
|---|
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters |
| 方法详细信息 |
|---|
Set<String> addMapping(String... urlPatterns)
If any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.
If this method is called multiple times, each successive call adds to the effects of the former.
urlPatterns - the URL patterns of the servlet mapping
IllegalArgumentException - if urlPatterns is null
or empty
IllegalStateException - if the ServletContext from which this
ServletRegistration was obtained has already been initializedCollection<String> getMappings()
ServletRegistration.
If permitted, any changes to the returned Collection must not
affect this ServletRegistration.
Collection of the currently
available mappings of the Servlet represented by this
ServletRegistrationString getRunAsRole()
ServletRegistration.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||