Package javax.servlet
Class ServletSecurityElement
- 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(Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.ServletSecurityElement(ServletSecurity annotation)
Constructor.ServletSecurityElement(HttpConstraintElement constraint)
Constructor.ServletSecurityElement(HttpConstraintElement constraint, Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<HttpMethodConstraintElement>
getHttpMethodConstraints()
Get the HTTP method constraints.Collection<String>
getMethodNames()
Get the method names.-
Methods inherited from class javax.servlet.HttpConstraintElement
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
-
-
-
-
Constructor Detail
-
ServletSecurityElement
public ServletSecurityElement()
Constructor.
-
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement constraint)
Constructor.- Parameters:
constraint
- the constraint.
-
ServletSecurityElement
public ServletSecurityElement(Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.- Parameters:
methodConstraints
- the method constraints.
-
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement constraint, Collection<HttpMethodConstraintElement> methodConstraints)
Constructor.- Parameters:
constraint
- the constraint.methodConstraints
- the method constraints.
-
ServletSecurityElement
public ServletSecurityElement(ServletSecurity annotation)
Constructor.- Parameters:
annotation
- the annotation.
-
-
Method Detail
-
getHttpMethodConstraints
public Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
Get the HTTP method constraints.- Returns:
- the HTTP method constraints.
-
getMethodNames
public Collection<String> getMethodNames()
Get the method names.- Returns:
- the method names.
-
-