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(Collection<HttpMethodConstraintElement> methodConstraints)
      Constructor.
      Parameters:
      methodConstraints - the method constraints.
    • ServletSecurityElement

      public ServletSecurityElement(HttpConstraintElement constraint, 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 Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
      Returns the HTTP method constraints.
      Returns:
      the HTTP method constraints
    • getMethodNames

      public Collection<String> getMethodNames()
      Returns the method names.
      Returns:
      the method names