static enum HttpConnection.State extends java.lang.Enum<HttpConnection.State>
Enum Constant and Description |
---|
CLOSED |
CLOSED_BY_SERVER |
CONNECT_TIMEOUT |
CONNECTING |
CREATED |
ERROR |
IDLE |
IDLE_TIMEOUT |
RECEIVED |
RECEIVING_BODY |
RECEIVING_HEADER |
RESPONSE_TIMEOUT |
SENDING_REQUEST |
Modifier and Type | Method and Description |
---|---|
static HttpConnection.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpConnection.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpConnection.State CREATED
public static final HttpConnection.State CONNECTING
public static final HttpConnection.State CONNECT_TIMEOUT
public static final HttpConnection.State IDLE
public static final HttpConnection.State SENDING_REQUEST
public static final HttpConnection.State RECEIVING_HEADER
public static final HttpConnection.State RECEIVING_BODY
public static final HttpConnection.State RECEIVED
public static final HttpConnection.State RESPONSE_TIMEOUT
public static final HttpConnection.State CLOSED_BY_SERVER
public static final HttpConnection.State CLOSED
public static final HttpConnection.State ERROR
public static final HttpConnection.State IDLE_TIMEOUT
public static HttpConnection.State[] values()
for (HttpConnection.State c : HttpConnection.State.values()) System.out.println(c);
public static HttpConnection.State 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 null