Top Description Fields Constructors Methods
javax.servlet

public Class HttpMethodConstraintElement

extends HttpConstraintElement
Class Inheritance
Imports
javax.servlet.annotation.HttpMethodConstraint

Java Class represntation of an HttpMethodConstraint annotation value.
Since
Servlet 3.0

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
HttpMethodConstraintElement(String
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
methodName
)

Constructs an instance with default HttpConstraintElement value.

public
HttpMethodConstraintElement(String
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
methodName
,
HttpConstraintElement
the HTTPconstraintElement value to assign to the named HTTP method
constraint
)

Constructs an instance with specified HttpConstraintElement value.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the Http method name
getMethodName
()

Gets the HTTP method name.

Inherited from javax.servlet.HttpConstraintElement:
getEmptyRoleSemanticgetRolesAllowedgetTransportGuarantee

Field Detail

methodNameback to summary
private String methodName

Constructor Detail

HttpMethodConstraintElementback to summary
public HttpMethodConstraintElement(String methodName)

Constructs an instance with default HttpConstraintElement value.

Parameters
methodName:String

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

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

Constructs an instance with specified HttpConstraintElement value.

Parameters
methodName:String

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

constraint:HttpConstraintElement

the HTTPconstraintElement value to assign to the named HTTP method

Method Detail

getMethodNameback to summary
public String getMethodName()

Gets the HTTP method name.

Returns:String

the Http method name