javax.servlet
类 HttpMethodConstraintElement

java.lang.Object
  继承者 javax.servlet.HttpConstraintElement
      继承者 javax.servlet.HttpMethodConstraintElement

public class HttpMethodConstraintElement
extends HttpConstraintElement

Java Class represntation of an HttpMethodConstraint annotation value.

从以下版本开始:
Servlet 3.0

构造方法摘要
HttpMethodConstraintElement(String methodName)
          Constructs an instance with default HttpConstraintElement value.
HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint)
          Constructs an instance with specified HttpConstraintElement value.
 
方法摘要
 String getMethodName()
          Gets the HTTP method name.
 
从类 javax.servlet.HttpConstraintElement 继承的方法
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HttpMethodConstraintElement

public HttpMethodConstraintElement(String methodName)
Constructs an instance with default HttpConstraintElement value.

参数:
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(String methodName,
                                   HttpConstraintElement constraint)
Constructs an instance with specified HttpConstraintElement value.

参数:
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
方法详细信息

getMethodName

public String getMethodName()
Gets the HTTP method name.

返回:
the Http method name


Copyright © 2013. All Rights Reserved.