Package javax.servlet

Class ServletSecurityElement


  • public class ServletSecurityElement
    extends HttpConstraintElement
    Since:
    Servlet 3.0 TODO SERVLET3 - Add comments
    • Constructor Detail

      • ServletSecurityElement

        public ServletSecurityElement()
        Use default HttpConstraint.
      • ServletSecurityElement

        public ServletSecurityElement​(HttpConstraintElement httpConstraintElement)
        Use specified HttpConstraintElement.
        Parameters:
        httpConstraintElement -
      • ServletSecurityElement

        public ServletSecurityElement​(java.util.Collection<HttpMethodConstraintElement> httpMethodConstraints)
        Use specific constraints for specified methods and default HttpConstraintElement for all other methods.
        Parameters:
        httpMethodConstraints -
        Throws:
        java.lang.IllegalArgumentException - if a method name is specified more than once
      • ServletSecurityElement

        public ServletSecurityElement​(HttpConstraintElement httpConstraintElement,
                                      java.util.Collection<HttpMethodConstraintElement> httpMethodConstraints)
        Use specified HttpConstraintElement as default and specific constraints for specified methods.
        Parameters:
        httpConstraintElement -
        httpMethodConstraints -
        Throws:
        java.lang.IllegalArgumentException - if a method name is specified more than
      • ServletSecurityElement

        public ServletSecurityElement​(ServletSecurity annotation)
        Create from an annotation.
        Parameters:
        annotation -
        Throws:
        java.lang.IllegalArgumentException - if a method name is specified more than
    • Method Detail

      • getMethodNames

        public java.util.Collection<java.lang.String> getMethodNames()