Package ch.squaredesk.nova.comm.http
Enum HttpRequestMethod
- java.lang.Object
-
- java.lang.Enum<HttpRequestMethod>
-
- ch.squaredesk.nova.comm.http.HttpRequestMethod
-
- All Implemented Interfaces:
Serializable,Comparable<HttpRequestMethod>
public enum HttpRequestMethod extends Enum<HttpRequestMethod>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
CONNECT
public static final HttpRequestMethod CONNECT
-
DELETE
public static final HttpRequestMethod DELETE
-
GET
public static final HttpRequestMethod GET
-
HEAD
public static final HttpRequestMethod HEAD
-
OPTIONS
public static final HttpRequestMethod OPTIONS
-
PATCH
public static final HttpRequestMethod PATCH
-
POST
public static final HttpRequestMethod POST
-
PRI
public static final HttpRequestMethod PRI
-
PUT
public static final HttpRequestMethod PUT
-
TRACE
public static final HttpRequestMethod TRACE
-
-
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
-
-