public static enum HttpRequest.State extends Enum<HttpRequest.State>
| Enum Constant and Description |
|---|
DONE |
ERROR |
INIT |
RECV_DATA |
RECV_HEADER |
SENDING_REQ |
| Modifier and Type | Method and Description |
|---|---|
static HttpRequest.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRequest.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRequest.State INIT
public static final HttpRequest.State SENDING_REQ
public static final HttpRequest.State RECV_HEADER
public static final HttpRequest.State RECV_DATA
public static final HttpRequest.State DONE
public static final HttpRequest.State ERROR
public static HttpRequest.State[] values()
for (HttpRequest.State c : HttpRequest.State.values()) System.out.println(c);
public static HttpRequest.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null