Top Description Fields Constructors Methods
jakarta.servlet

public Class HttpMethodConstraintElement

extends HttpConstraintElement
Class Inheritance
Imports
java.util.ResourceBundle

Programmatic equivalent of a security constraint defined for a single HTTP method.
Since
Servlet 3.0

Field Summary

Modifier and TypeField and Description
private static final String
private static final ResourceBundle
private final String

Constructor Summary

AccessConstructor and Description
public
HttpMethodConstraintElement(String
The HTTP method name
methodName
)

Construct an instance for the given HTTP method name and a default HttpConstraintElement.

public
HttpMethodConstraintElement(String
The HTTP method name
methodName
,
HttpConstraintElement
The constraint for the given method
constraint
)

Construct an instance for the given HTTP method name and HttpConstraintElement.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The HTTP method name as provided to the constructor
getMethodName
()

Obtain the name of the HTTP method for which this constraint was created.

Inherited from jakarta.servlet.HttpConstraintElement:
getEmptyRoleSemanticgetRolesAllowedgetTransportGuarantee

Field Detail

LSTRING_FILEback to summary
private static final String LSTRING_FILE

Hides jakarta.servlet.HttpConstraintElement.LSTRING_FILE.

lStringsback to summary
private static final ResourceBundle lStrings

Hides jakarta.servlet.HttpConstraintElement.lStrings.

methodNameback to summary
private final String methodName

Constructor Detail

HttpMethodConstraintElementback to summary
public HttpMethodConstraintElement(String methodName)

Construct an instance for the given HTTP method name and a default HttpConstraintElement.

Parameters
methodName:String

The HTTP method name

HttpMethodConstraintElementback to summary
public HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint)

Construct an instance for the given HTTP method name and HttpConstraintElement.

Parameters
methodName:String

The HTTP method name

constraint:HttpConstraintElement

The constraint for the given method

Method Detail

getMethodNameback to summary
public String getMethodName()

Obtain the name of the HTTP method for which this constraint was created.

Returns:String

The HTTP method name as provided to the constructor