Package jakarta.servlet
Class HttpMethodConstraintElement
java.lang.Object
jakarta.servlet.HttpConstraintElement
jakarta.servlet.HttpMethodConstraintElement
Java Class representation of an 
HttpMethodConstraint annotation value.- Since:
- Servlet 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionHttpMethodConstraintElement(String methodName) Constructs an instance with defaultHttpConstraintElementvalue.HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint) Constructs an instance with specifiedHttpConstraintElementvalue.
- 
Method SummaryMethods inherited from class jakarta.servlet.HttpConstraintElementgetEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
- 
Constructor Details- 
HttpMethodConstraintElementConstructs an instance with defaultHttpConstraintElementvalue.- 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 7231
 
- 
HttpMethodConstraintElementConstructs an instance with specifiedHttpConstraintElementvalue.- 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 7231
- constraint- the HTTPconstraintElement value to assign to the named HTTP method
 
 
- 
- 
Method Details- 
getMethodNameGets the HTTP method name.- Returns:
- the Http method name
 
 
-