Package javax.servlet
Class ServletSecurityElement
java.lang.Object
javax.servlet.HttpConstraintElement
javax.servlet.ServletSecurityElement
- Since:
- Servlet 3.0 TODO SERVLET3 - Add comments
-
Constructor Summary
ConstructorsConstructorDescriptionUse default HttpConstraint.ServletSecurityElement
(Collection<HttpMethodConstraintElement> httpMethodConstraints) Use specific constraints for specified methods and default HttpConstraintElement for all other methods.ServletSecurityElement
(ServletSecurity annotation) Create from an annotation.ServletSecurityElement
(HttpConstraintElement httpConstraintElement) Use specified HttpConstraintElement.ServletSecurityElement
(HttpConstraintElement httpConstraintElement, Collection<HttpMethodConstraintElement> httpMethodConstraints) Use specified HttpConstraintElement as default and specific constraints for specified methods. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class javax.servlet.HttpConstraintElement
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
-
Constructor Details
-
ServletSecurityElement
public ServletSecurityElement()Use default HttpConstraint. -
ServletSecurityElement
Use specified HttpConstraintElement.- Parameters:
httpConstraintElement
- The constraint
-
ServletSecurityElement
Use specific constraints for specified methods and default HttpConstraintElement for all other methods.- Parameters:
httpMethodConstraints
- Method constraints- Throws:
IllegalArgumentException
- if a method name is specified more than once
-
ServletSecurityElement
public ServletSecurityElement(HttpConstraintElement httpConstraintElement, Collection<HttpMethodConstraintElement> httpMethodConstraints) Use specified HttpConstraintElement as default and specific constraints for specified methods.- Parameters:
httpConstraintElement
- Default constrainthttpMethodConstraints
- Method constraints- Throws:
IllegalArgumentException
- if a method name is specified more than
-
ServletSecurityElement
Create from an annotation.- Parameters:
annotation
- Annotation to use as the basis for the new instance- Throws:
IllegalArgumentException
- if a method name is specified more than
-
-
Method Details
-
getHttpMethodConstraints
-
getMethodNames
-