|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.servlet.Holder.HolderRegistration
org.eclipse.jetty.servlet.ServletHolder.Registration
public class ServletHolder.Registration
| 嵌套类摘要 |
|---|
| 从接口 javax.servlet.ServletRegistration 继承的嵌套类/接口 |
|---|
ServletRegistration.Dynamic |
| 字段摘要 | |
|---|---|
protected MultipartConfigElement |
_multipartConfig
|
| 构造方法摘要 | |
|---|---|
ServletHolder.Registration()
|
|
| 方法摘要 | |
|---|---|
Set<String> |
addMapping(String... urlPatterns)
Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration. |
int |
getInitOrder()
|
Collection<String> |
getMappings()
Gets the currently available mappings of the Servlet represented by this ServletRegistration. |
MultipartConfigElement |
getMultipartConfig()
|
String |
getRunAsRole()
Gets the name of the runAs role of the Servlet represented by this ServletRegistration. |
void |
setLoadOnStartup(int loadOnStartup)
Sets the loadOnStartup priority on the Servlet
represented by this dynamic ServletRegistration. |
void |
setMultipartConfig(MultipartConfigElement element)
Sets the MultipartConfigElement to be applied to the
mappings defined for this ServletRegistration. |
void |
setRunAsRole(String role)
Sets the name of the runAs role for this
ServletRegistration. |
Set<String> |
setServletSecurity(ServletSecurityElement securityElement)
Sets the ServletSecurityElement to be applied to the
mappings defined for this ServletRegistration. |
| 从类 org.eclipse.jetty.servlet.Holder.HolderRegistration 继承的方法 |
|---|
getClassName, getInitParameter, getInitParameters, getName, setAsyncSupported, setDescription, setInitParameter, setInitParameters |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.servlet.Registration.Dynamic 继承的方法 |
|---|
setAsyncSupported |
| 从接口 javax.servlet.Registration 继承的方法 |
|---|
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters |
| 字段详细信息 |
|---|
protected MultipartConfigElement _multipartConfig
| 构造方法详细信息 |
|---|
public ServletHolder.Registration()
| 方法详细信息 |
|---|
public Set<String> addMapping(String... urlPatterns)
ServletRegistration 复制的描述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.
ServletRegistration 中的 addMappingurlPatterns - the URL patterns of the servlet mapping
public Collection<String> getMappings()
ServletRegistration 复制的描述ServletRegistration.
If permitted, any changes to the returned Collection must not
affect this ServletRegistration.
ServletRegistration 中的 getMappingsCollection of the currently
available mappings of the Servlet represented by this
ServletRegistrationpublic String getRunAsRole()
ServletRegistration 复制的描述ServletRegistration.
ServletRegistration 中的 getRunAsRolepublic void setLoadOnStartup(int loadOnStartup)
ServletRegistration.Dynamic 复制的描述loadOnStartup priority on the Servlet
represented by this dynamic ServletRegistration.
A loadOnStartup value of greater than or equal to
zero indicates to the container the initialization priority of
the Servlet. In this case, the container must instantiate and
initialize the Servlet during the initialization phase of the
ServletContext, that is, after it has invoked all of the
ServletContextListener objects configured for the ServletContext
at their ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
method.
If loadOnStartup is a negative integer, the container is free to instantiate and initialize the Servlet lazily.
The default value for loadOnStartup is -1.
A call to this method overrides any previous setting.
ServletRegistration.Dynamic 中的 setLoadOnStartuploadOnStartup - the initialization priority of the Servletpublic int getInitOrder()
public void setMultipartConfig(MultipartConfigElement element)
ServletRegistration.Dynamic 复制的描述MultipartConfigElement to be applied to the
mappings defined for this ServletRegistration. If this
method is called multiple times, each successive call overrides the
effects of the former.
ServletRegistration.Dynamic 中的 setMultipartConfigelement - the MultipartConfigElement to be
applied to the patterns mapped to the registrationpublic MultipartConfigElement getMultipartConfig()
public void setRunAsRole(String role)
ServletRegistration.Dynamic 复制的描述runAs role for this
ServletRegistration.
ServletRegistration.Dynamic 中的 setRunAsRolerole - the name of the runAs rolepublic Set<String> setServletSecurity(ServletSecurityElement securityElement)
ServletRegistration.Dynamic 复制的描述ServletSecurityElement to be applied to the
mappings defined for this ServletRegistration.
This method applies to all mappings added to this
ServletRegistration up until the point that the
ServletContext from which it was obtained has been
initialized.
If a URL pattern of this ServletRegistration is an exact target
of a security-constraint that was established via
the portable deployment descriptor, then this method does not
change the security-constraint for that pattern,
and the pattern will be included in the return value.
If a URL pattern of this ServletRegistration is an exact
target of a security constraint that was established via the
ServletSecurity annotation
or a previous call to this method, then this method replaces
the security constraint for that pattern.
If a URL pattern of this ServletRegistration is neither the
exact target of a security constraint that was established via
the ServletSecurity annotation
or a previous call to this method, nor the exact target of a
security-constraint in the portable deployment
descriptor, then this method establishes the security constraint
for that pattern from the argument
ServletSecurityElement.
ServletRegistration.Dynamic 中的 setServletSecuritysecurityElement - the ServletSecurityElement to be applied
to the patterns mapped to this ServletRegistration
security-constraint that was
established via the portable deployment descriptor. This method
has no effect on the patterns included in the returned set
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||