public class ServletSecurityElement extends HttpConstraintElement
ServletSecurity
annotation value.Constructor and Description |
---|
ServletSecurityElement()
Constructs an instance using the default
HttpConstraintElement value as the default Constraint element
and with no HTTP Method specific constraint elements. |
ServletSecurityElement(java.util.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,
java.util.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. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<HttpMethodConstraintElement> |
getHttpMethodConstraints()
Gets the (possibly empty) collection of HTTP Method specific constraint elements.
|
java.util.Collection<java.lang.String> |
getMethodNames()
Gets the set of HTTP method names named by the HttpMethodConstraints.
|
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
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(java.util.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 elementsjava.lang.IllegalArgumentException
- if duplicate method names are detectedpublic ServletSecurityElement(HttpConstraintElement constraint, java.util.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.java.lang.IllegalArgumentException
- if duplicate method names are detectedpublic ServletSecurityElement(ServletSecurity annotation)
ServletSecurity
annotation value.annotation
- the annotation valuejava.lang.IllegalArgumentException
- if duplicate method names are detectedpublic java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
If permitted, any changes to the returned Collection
must not affect this
ServletSecurityElement
.
public java.util.Collection<java.lang.String> getMethodNames()
If permitted, any changes to the returned Collection
must not affect this
ServletSecurityElement
.