public class HttpMethodConstraintElement extends HttpConstraintElement
HttpMethodConstraint
annotation value.Constructor and Description |
---|
HttpMethodConstraintElement(java.lang.String methodName)
Constructs an instance with default
HttpConstraintElement value. |
HttpMethodConstraintElement(java.lang.String methodName,
HttpConstraintElement constraint)
Constructs an instance with specified
HttpConstraintElement value. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethodName()
Gets the HTTP method name.
|
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
public HttpMethodConstraintElement(java.lang.String methodName)
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 7231public HttpMethodConstraintElement(java.lang.String methodName, HttpConstraintElement constraint)
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 7231constraint
- the HTTPconstraintElement value to assign to the named HTTP method