Enum HttpRequestMethod
- java.lang.Object
-
- java.lang.Enum<HttpRequestMethod>
-
- io.quarkiverse.githubapp.runtime.sse.HttpRequestMethod
-
- All Implemented Interfaces:
Serializable,Comparable<HttpRequestMethod>
public enum HttpRequestMethod extends Enum<HttpRequestMethod>
Enum representing HTTP request methods supported byHttpEventStreamClient- Since:
- 2020-12-22
- Author:
- LupCode.com (Luca Vogels)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanneedsBody()Returns if method type needs a request bodystatic HttpRequestMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static HttpRequestMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HttpRequestMethod GET
-
POST
public static final HttpRequestMethod POST
-
PUT
public static final HttpRequestMethod PUT
-
DELETE
public static final HttpRequestMethod DELETE
-
-
Method Detail
-
values
public static HttpRequestMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpRequestMethod c : HttpRequestMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpRequestMethod valueOf(String name)
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
-
needsBody
public boolean needsBody()
Returns if method type needs a request body- Returns:
- True if request body is needed
-
-