Package javax.servlet

Class HttpMethodConstraintElement

    • Constructor Detail

      • HttpMethodConstraintElement

        public HttpMethodConstraintElement​(java.lang.String methodName)
        Constructs an instance with default HttpConstraintElement value.
        Parameters:
        methodName - the name of an HTTP protocol method. The name must not be null, or the empty string, and must be a legitimate HTTP Method name as defined by RFC 2616
      • HttpMethodConstraintElement

        public HttpMethodConstraintElement​(java.lang.String methodName,
                                           HttpConstraintElement constraint)
        Constructs an instance with specified HttpConstraintElement value.
        Parameters:
        methodName - the name of an HTTP protocol method. The name must not be null, or the empty string, and must be a legitimate HTTP Method name as defined by RFC 2616
        constraint - the HTTPconstraintElement value to assign to the named HTTP method
    • Method Detail

      • getMethodName

        public java.lang.String getMethodName​()
        Gets the HTTP method name.
        Returns:
        the Http method name