|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.HttpConstraintElement javax.servlet.ServletSecurityElement
public class ServletSecurityElement
Java Class represntation of a ServletSecurity
annotation value.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 methid names named by the HttpMethodConstraints. |
Methods inherited from class javax.servlet.HttpConstraintElement |
---|
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 elements
java.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 value
java.lang.IllegalArgumentException
- if duplicate method names are
detectedMethod Detail |
---|
public java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
public java.util.Collection<java.lang.String> getMethodNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34