|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.HttpConstraintElement
javax.servlet.ServletSecurityElement
public class ServletSecurityElement
Java Class represntation of a ServletSecurity annotation value.
| 构造方法摘要 | |
|---|---|
ServletSecurityElement()
Constructs an instance using the default HttpConstraintElement value as the default Constraint
element and with no HTTP Method specific constraint elements. |
|
ServletSecurityElement(Collection<HttpMethodConstraintElement> methodConstraints)
Constructs an instance using the default HttpConstraintElement value as the default Constraint
element and with a collection of HTTP Method specific constraint
elements. |
|
ServletSecurityElement(HttpConstraintElement constraint)
Constructs an instance with a default Constraint element and with no HTTP Method specific constraint elements. |
|
ServletSecurityElement(HttpConstraintElement constraint,
Collection<HttpMethodConstraintElement> methodConstraints)
Constructs an instance with a default Constraint element and with a collection of HTTP Method specific constraint elements. |
|
ServletSecurityElement(ServletSecurity annotation)
Constructs an instance from a ServletSecurity annotation value. |
|
| 方法摘要 | |
|---|---|
Collection<HttpMethodConstraintElement> |
getHttpMethodConstraints()
Gets the (possibly empty) collection of HTTP Method specific constraint elements. |
Collection<String> |
getMethodNames()
Gets the set of HTTP method names named by the HttpMethodConstraints. |
| 从类 javax.servlet.HttpConstraintElement 继承的方法 |
|---|
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ServletSecurityElement()
HttpConstraintElement value as the default Constraint
element and with no HTTP Method specific constraint elements.
public ServletSecurityElement(HttpConstraintElement constraint)
constraint - the HttpConstraintElement to be
applied to all HTTP methods other than those represented in the
methodConstraintspublic ServletSecurityElement(Collection<HttpMethodConstraintElement> methodConstraints)
HttpConstraintElement value as the default Constraint
element and with a collection of HTTP Method specific constraint
elements.
methodConstraints - the collection of HTTP method specific
constraint elements
IllegalArgumentException - if duplicate method names are
detected
public ServletSecurityElement(HttpConstraintElement constraint,
Collection<HttpMethodConstraintElement> methodConstraints)
constraint - the HttpConstraintElement to be
applied to all HTTP methods other than those represented in the
methodConstraintsmethodConstraints - the collection of HTTP method specific
constraint elements.
IllegalArgumentException - if duplicate method names are
detectedpublic ServletSecurityElement(ServletSecurity annotation)
ServletSecurity annotation value.
annotation - the annotation value
IllegalArgumentException - if duplicate method names are
detected| 方法详细信息 |
|---|
public Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
If permitted, any changes to the returned Collection must not
affect this ServletSecurityElement.
public Collection<String> getMethodNames()
If permitted, any changes to the returned Collection must not
affect this ServletSecurityElement.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||