Package jakarta.servlet
Class HttpMethodConstraintElement
java.lang.Object
jakarta.servlet.HttpConstraintElement
jakarta.servlet.HttpMethodConstraintElement
Programmatic equivalent of a security constraint defined for a single HTTP method.
- Since:
- Servlet 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionHttpMethodConstraintElement(String methodName) Construct an instance for the given HTTP method name and a defaultHttpConstraintElement.HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint) Construct an instance for the given HTTP method name andHttpConstraintElement.
- 
Method SummaryModifier and TypeMethodDescriptionObtain the name of the HTTP method for which this constraint was created.Methods inherited from class jakarta.servlet.HttpConstraintElementgetEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
- 
Constructor Details- 
HttpMethodConstraintElementConstruct an instance for the given HTTP method name and a defaultHttpConstraintElement.- Parameters:
- methodName- The HTTP method name
 
- 
HttpMethodConstraintElementConstruct an instance for the given HTTP method name andHttpConstraintElement.- Parameters:
- methodName- The HTTP method name
- constraint- The constraint for the given method
 
 
- 
- 
Method Details- 
getMethodNameObtain the name of the HTTP method for which this constraint was created.- Returns:
- The HTTP method name as provided to the constructor
 
 
-