public class ServletSecurityElement extends HttpConstraintElement
Constructor and Description |
---|
ServletSecurityElement()
Use default HttpConstraint.
|
ServletSecurityElement(Collection<HttpMethodConstraintElement> httpMethodConstraints)
Use specific constraints for specified methods and default
HttpConstraintElement for all other methods.
|
ServletSecurityElement(HttpConstraintElement httpConstraintElement)
Use specified HttpConstraintElement.
|
ServletSecurityElement(HttpConstraintElement httpConstraintElement,
Collection<HttpMethodConstraintElement> httpMethodConstraints)
Use specified HttpConstraintElement as default and specific constraints
for specified methods.
|
ServletSecurityElement(ServletSecurity annotation)
Create from an annotation.
|
Modifier and Type | Method and Description |
---|---|
Collection<HttpMethodConstraintElement> |
getHttpMethodConstraints() |
Collection<String> |
getMethodNames() |
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
public ServletSecurityElement()
public ServletSecurityElement(HttpConstraintElement httpConstraintElement)
httpConstraintElement
- The constraintpublic ServletSecurityElement(Collection<HttpMethodConstraintElement> httpMethodConstraints)
httpMethodConstraints
- Method constraintsIllegalArgumentException
- if a method name is specified more than
oncepublic ServletSecurityElement(HttpConstraintElement httpConstraintElement, Collection<HttpMethodConstraintElement> httpMethodConstraints)
httpConstraintElement
- Default constrainthttpMethodConstraints
- Method constraintsIllegalArgumentException
- if a method name is specified more thanpublic ServletSecurityElement(ServletSecurity annotation)
annotation
- Annotation to use as the basis for the new instanceIllegalArgumentException
- if a method name is specified more thanpublic Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
public Collection<String> getMethodNames()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.