Package javax.servlet.annotation
Annotation Type ServletSecurity
-
@Inherited @Target(TYPE) @Retention(RUNTIME) @Documented public @interface ServletSecurityDeclare this annotation on aServletimplementation class to enforce security constraints on HTTP protocol requests.
The container applies constraints to the URL patterns mapped to each Servlet which declares this annotation.
- Since:
- Servlet 3.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description HttpMethodConstraint[]httpMethodConstraintsAn array of HttpMethodConstraint objects to which the security constraint will be appliedHttpConstraintvalueThe default constraint to apply to requests not handled by specific method constraints
-
-
-
Element Detail
-
value
HttpConstraint value
The default constraint to apply to requests not handled by specific method constraints- Returns:
- http constraint
- Default:
- @javax.servlet.annotation.HttpConstraint
-
-
-
httpMethodConstraints
HttpMethodConstraint[] httpMethodConstraints
An array of HttpMethodConstraint objects to which the security constraint will be applied- Returns:
- array of http method constraint
- Default:
- {}
-
-