Package org.eclipse.jetty.client
Enum Class HttpReceiver.ResponseState
- All Implemented Interfaces:
Serializable
,Comparable<HttpReceiver.ResponseState>
,Constable
- Enclosing class:
- HttpReceiver
The request states
HttpReceiver
goes through when receiving a response.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe response status code has been receivedThe response content is being receivedThe response is failedThe response headers are being receivedAll the response headers have been receivedThe response is not yet received, the initial stateOne of the response*() methods is being executed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpReceiver.ResponseState
Returns the enum constant of this class with the specified name.static HttpReceiver.ResponseState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRANSIENT
One of the response*() methods is being executed. -
IDLE
The response is not yet received, the initial state -
BEGIN
The response status code has been received -
HEADER
The response headers are being received -
HEADERS
All the response headers have been received -
CONTENT
The response content is being received -
FAILURE
The response is failed
-
-
Constructor Details
-
ResponseState
private ResponseState()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-