java.lang.Object
javax.servlet.HttpConstraintElement
javax.servlet.ServletSecurityElement
public class ServletSecurityElement extends HttpConstraintElement
The ServletSecurityElement API.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
Constructors Constructor Description ServletSecurityElement()
Constructor.ServletSecurityElement(java.util.Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.ServletSecurityElement(ServletSecurity annotation)
Constructor.ServletSecurityElement(HttpConstraintElement constraint)
Constructor.ServletSecurityElement(HttpConstraintElement constraint, java.util.Collection<HttpMethodConstraintElement> methodConstraints)
Constructor. -
Method Summary
Modifier and Type Method Description java.util.Collection<HttpMethodConstraintElement>
getHttpMethodConstraints()
Get the HTTP method constraints.java.util.Collection<java.lang.String>
getMethodNames()
Get the method names.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 Details
-
ServletSecurityElement
public ServletSecurityElement()Constructor. -
ServletSecurityElement
Constructor.- Parameters:
constraint
- the constraint.
-
ServletSecurityElement
Constructor.- Parameters:
methodConstraints
- the method constraints.
-
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement constraint, java.util.Collection<HttpMethodConstraintElement> methodConstraints)Constructor.- Parameters:
constraint
- the constraint.methodConstraints
- the method constraints.
-
ServletSecurityElement
Constructor.- Parameters:
annotation
- the annotation.
-
-
Method Details
-
getHttpMethodConstraints
Get the HTTP method constraints.- Returns:
- the HTTP method constraints.
-
getMethodNames
public java.util.Collection<java.lang.String> getMethodNames()Get the method names.- Returns:
- the method names.
-