public enum HttpClientState extends Enum<HttpClientState> implements ConnectionObserver.State
HttpClient.observe(ConnectionObserver)
Enum Constant and Description |
---|
REQUEST_PREPARED
The request has been prepared and ready for I/O handler to be invoked
|
REQUEST_SENT
The request has been sent
|
RESPONSE_COMPLETED
The response fully received
|
RESPONSE_INCOMPLETE
The request has been sent but the response has not been fully received and the
connection has been prematurely closed
|
RESPONSE_RECEIVED
The response status and headers have been received
|
STREAM_CONFIGURED
Propagated when a stream is bound to a channelOperation and ready for
user interaction
|
UPGRADE_REJECTED
The H2C upgrade was unsuccessful due to the server not issuing
with a 101 Switching Protocols response.
|
UPGRADE_SUCCESSFUL
The H2C upgrade was successful.
|
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_PREPARED
public static final HttpClientState REQUEST_SENT
public static final HttpClientState RESPONSE_INCOMPLETE
public static final HttpClientState RESPONSE_RECEIVED
public static final HttpClientState RESPONSE_COMPLETED
public static final HttpClientState STREAM_CONFIGURED
public static final HttpClientState UPGRADE_REJECTED
public static final HttpClientState UPGRADE_SUCCESSFUL
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