Package javax.servlet
Class HttpMethodConstraintElement
- java.lang.Object
-
- javax.servlet.HttpConstraintElement
-
- javax.servlet.HttpMethodConstraintElement
-
public class HttpMethodConstraintElement extends HttpConstraintElement
Java Class represntation of anHttpMethodConstraintannotation value.- Since:
- Servlet 3.0
-
-
Constructor Summary
Constructors Constructor Description HttpMethodConstraintElement(java.lang.String methodName)Constructs an instance with defaultHttpConstraintElementvalue.HttpMethodConstraintElement(java.lang.String methodName, HttpConstraintElement constraint)Constructs an instance with specifiedHttpConstraintElementvalue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodName()Gets the HTTP method name.-
Methods inherited from class javax.servlet.HttpConstraintElement
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
-
-
-
-
Constructor Detail
-
HttpMethodConstraintElement
public HttpMethodConstraintElement(java.lang.String methodName)
Constructs 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 2616
-
HttpMethodConstraintElement
public HttpMethodConstraintElement(java.lang.String methodName, HttpConstraintElement constraint)Constructs 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 2616constraint- the HTTPconstraintElement value to assign to the named HTTP method
-
-