Enum HttpMethod
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethod>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.763Z")
@Stability(Stable)
public enum HttpMethod
extends Enum<HttpMethod>
All http request methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe wildcard entry to allow all methods.The DELETE method deletes the specified resource.The GET method requests a representation of the specified resource.The HEAD method asks for a response identical to that of a GET request, but without the response body.The OPTIONS method describes the communication options for the target resource.The PATCH method applies partial modifications to a resource.The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.The PUT method replaces all current representations of the target resource with the request payload. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethod
Returns the enum constant of this type with the specified name.static HttpMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET
The GET method requests a representation of the specified resource. -
PUT
The PUT method replaces all current representations of the target resource with the request payload. -
HEAD
The HEAD method asks for a response identical to that of a GET request, but without the response body. -
POST
The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server. -
DELETE
The DELETE method deletes the specified resource. -
PATCH
The PATCH method applies partial modifications to a resource. -
OPTIONS
The OPTIONS method describes the communication options for the target resource. -
ALL
The wildcard entry to allow all methods.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-