private static enum HttpReceiver.ResponseState extends java.lang.Enum<HttpReceiver.ResponseState>
HttpReceiver
goes through when receiving a response.Enum Constant and Description |
---|
BEGIN
The response status code has been received
|
CONTENT
The response content is being received
|
FAILURE
The response is failed
|
HEADER
The response headers are being received
|
HEADERS
All the response headers have been received
|
IDLE
The response is not yet received, the initial state
|
TRANSIENT
One of the response*() methods is being executed.
|
Modifier and Type | Method and Description |
---|---|
static HttpReceiver.ResponseState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpReceiver.ResponseState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpReceiver.ResponseState TRANSIENT
public static final HttpReceiver.ResponseState IDLE
public static final HttpReceiver.ResponseState BEGIN
public static final HttpReceiver.ResponseState HEADER
public static final HttpReceiver.ResponseState HEADERS
public static final HttpReceiver.ResponseState CONTENT
public static final HttpReceiver.ResponseState FAILURE
public static HttpReceiver.ResponseState[] values()
for (HttpReceiver.ResponseState c : HttpReceiver.ResponseState.values()) System.out.println(c);
public static HttpReceiver.ResponseState 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