Package org.eclipse.jetty.client
Enum HttpReceiver.ResponseState
- java.lang.Object
-
- java.lang.Enum<HttpReceiver.ResponseState>
-
- org.eclipse.jetty.client.HttpReceiver.ResponseState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpReceiver.ResponseState>
- Enclosing class:
- HttpReceiver
private static enum HttpReceiver.ResponseState extends java.lang.Enum<HttpReceiver.ResponseState>
The request statesHttpReceiver
goes through when receiving a response.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGIN
The response status code has been receivedCONTENT
The response content is being receivedFAILURE
The response is failedHEADER
The response headers are being receivedHEADERS
All the response headers have been receivedIDLE
The response is not yet received, the initial stateTRANSIENT
One of the response*() methods is being executed.
-
Constructor Summary
Constructors Modifier Constructor Description private
ResponseState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
TRANSIENT
public static final HttpReceiver.ResponseState TRANSIENT
One of the response*() methods is being executed.
-
IDLE
public static final HttpReceiver.ResponseState IDLE
The response is not yet received, the initial state
-
BEGIN
public static final HttpReceiver.ResponseState BEGIN
The response status code has been received
-
HEADER
public static final HttpReceiver.ResponseState HEADER
The response headers are being received
-
HEADERS
public static final HttpReceiver.ResponseState HEADERS
All the response headers have been received
-
CONTENT
public static final HttpReceiver.ResponseState CONTENT
The response content is being received
-
FAILURE
public static final HttpReceiver.ResponseState FAILURE
The response is failed
-
-
Method Detail
-
values
public static HttpReceiver.ResponseState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpReceiver.ResponseState c : HttpReceiver.ResponseState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpReceiver.ResponseState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-