public class ServletSecurityElement extends HttpConstraintElement
Constructor and Description |
---|
ServletSecurityElement()
Use default HttpConstraint.
|
ServletSecurityElement(java.util.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,
java.util.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 |
---|---|
java.util.Collection<HttpMethodConstraintElement> |
getHttpMethodConstraints() |
java.util.Collection<java.lang.String> |
getMethodNames() |
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
public ServletSecurityElement()
public ServletSecurityElement(java.util.Collection<HttpMethodConstraintElement> httpMethodConstraints)
httpMethodConstraints
- java.lang.IllegalArgumentException
- if a method name is specified more than
oncepublic ServletSecurityElement(HttpConstraintElement httpConstraintElement)
httpConstraintElement
- public ServletSecurityElement(HttpConstraintElement httpConstraintElement, java.util.Collection<HttpMethodConstraintElement> httpMethodConstraints)
httpConstraintElement
- httpMethodConstraints
- java.lang.IllegalArgumentException
- if a method name is specified more thanpublic ServletSecurityElement(ServletSecurity annotation)
annotation
- java.lang.IllegalArgumentException
- if a method name is specified more thanpublic java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
public java.util.Collection<java.lang.String> getMethodNames()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.