Package de.mhus.lib.core.io.http
Enum MHttp.METHOD
- java.lang.Object
-
- java.lang.Enum<MHttp.METHOD>
-
- de.mhus.lib.core.io.http.MHttp.METHOD
-
- All Implemented Interfaces:
Serializable,Comparable<MHttp.METHOD>
- Enclosing class:
- MHttp
public static enum MHttp.METHOD extends Enum<MHttp.METHOD>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MHttp.METHODvalueOf(String name)Returns the enum constant of this type with the specified name.static MHttp.METHOD[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final MHttp.METHOD GET
-
HEAD
public static final MHttp.METHOD HEAD
-
POST
public static final MHttp.METHOD POST
-
PUT
public static final MHttp.METHOD PUT
-
DELETE
public static final MHttp.METHOD DELETE
-
CONNECT
public static final MHttp.METHOD CONNECT
-
OPTIONS
public static final MHttp.METHOD OPTIONS
-
TRACE
public static final MHttp.METHOD TRACE
-
PATCH
public static final MHttp.METHOD PATCH
-
-
Method Detail
-
values
public static MHttp.METHOD[] 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 (MHttp.METHOD c : MHttp.METHOD.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MHttp.METHOD 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
-
-