public enum HttpClientState extends Enum<HttpClientState> implements ConnectionObserver.State
HttpClient.observe(ConnectionObserver)
Enum Constant and Description |
---|
REQUEST_SENT
The request has been sent
|
RESPONSE_INCOMPLETE
The request has been sent but the response has not been fully received and the
connection has prematurely closed
|
RESPONSE_RECEIVED
The response status and headers have been received
|
ACQUIRED, CONFIGURED, CONNECTED, DISCONNECTING, RELEASED
Modifier and Type | Method and Description |
---|---|
static HttpClientState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpClientState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpClientState REQUEST_SENT
public static final HttpClientState RESPONSE_INCOMPLETE
public static final HttpClientState RESPONSE_RECEIVED
public static HttpClientState[] values()
for (HttpClientState c : HttpClientState.values()) System.out.println(c);
public static HttpClientState 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