Class ServletSecurityElement

java.lang.Object
jakarta.servlet.HttpConstraintElement
jakarta.servlet.ServletSecurityElement

public class ServletSecurityElement
extends HttpConstraintElement
The ServletSecurityElement API.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • ServletSecurityElement

      public ServletSecurityElement()
      Constructor.
    • ServletSecurityElement

      public ServletSecurityElement​(HttpConstraintElement constraint)
      Constructor.
      Parameters:
      constraint - the constraint.
    • ServletSecurityElement

      public ServletSecurityElement​(java.util.Collection<HttpMethodConstraintElement> methodConstraints)
      Constructor.
      Parameters:
      methodConstraints - the method constraints.
    • ServletSecurityElement

      public ServletSecurityElement​(HttpConstraintElement constraint, java.util.Collection<HttpMethodConstraintElement> methodConstraints)
      Constructor.
      Parameters:
      constraint - the constraint.
      methodConstraints - the method constraints.
    • ServletSecurityElement

      public ServletSecurityElement​(ServletSecurity annotation)
      Constructor.
      Parameters:
      annotation - the annotation.
  • Method Details

    • getHttpMethodConstraints

      public java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
      Get the HTTP method constraints.
      Returns:
      the HTTP method constraints.
    • getMethodNames

      public java.util.Collection<java.lang.String> getMethodNames()
      Get the method names.
      Returns:
      the method names.