java.lang.Object
jakarta.servlet.HttpConstraintElement
jakarta.servlet.ServletSecurityElement
The ServletSecurityElement API.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
ConstructorDescriptionConstructor.ServletSecurityElement(ServletSecurity annotation)
Constructor.ServletSecurityElement(HttpConstraintElement constraint)
Constructor.ServletSecurityElement(HttpConstraintElement constraint, Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.ServletSecurityElement(Collection<HttpMethodConstraintElement> methodConstraints)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP method constraints.Returns the method names.Methods inherited from class jakarta.servlet.HttpConstraintElement
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
-
Constructor Details
-
ServletSecurityElement
public ServletSecurityElement()Constructor. -
ServletSecurityElement
Constructor.- Parameters:
constraint
- the constraint.
-
ServletSecurityElement
Constructor.- Parameters:
methodConstraints
- the method constraints.
-
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement constraint, Collection<HttpMethodConstraintElement> methodConstraints)Constructor.- Parameters:
constraint
- the constraint.methodConstraints
- the method constraints.
-
ServletSecurityElement
Constructor.- Parameters:
annotation
- the annotation.
-
-
Method Details
-
getHttpMethodConstraints
Returns the HTTP method constraints.- Returns:
- the HTTP method constraints
-
getMethodNames
Returns the method names.- Returns:
- the method names
-