public class HttpMethodConstraintElement extends HttpConstraintElement
HttpMethodConstraint
annotation value.Constructor and Description |
---|
HttpMethodConstraintElement(String methodName)
Constructs an instance with default
HttpConstraintElement value. |
HttpMethodConstraintElement(String methodName,
HttpConstraintElement constraint)
Constructs an instance with specified
HttpConstraintElement value. |
Modifier and Type | Method and Description |
---|---|
String |
getMethodName()
Gets the HTTP method name.
|
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
public HttpMethodConstraintElement(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 2616public HttpMethodConstraintElement(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 2616constraint
- the HTTPconstraintElement value to assign to the named HTTP methodpublic String getMethodName()
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.