public static enum NanoHTTPD.Method extends java.lang.Enum<NanoHTTPD.Method>
String
back to its enum value.Modifier and Type | Method and Description |
---|---|
(package private) static NanoHTTPD.Method |
lookup(java.lang.String method) |
static NanoHTTPD.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NanoHTTPD.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NanoHTTPD.Method GET
public static final NanoHTTPD.Method PUT
public static final NanoHTTPD.Method POST
public static final NanoHTTPD.Method DELETE
public static final NanoHTTPD.Method HEAD
public static final NanoHTTPD.Method OPTIONS
public static NanoHTTPD.Method[] values()
for (NanoHTTPD.Method c : NanoHTTPD.Method.values()) System.out.println(c);
public static NanoHTTPD.Method valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic NanoHTTPD.Method lookup(java.lang.String method)