Package org.eclipse.jetty.client
Enum HttpSender.RequestState
- java.lang.Object
-
- java.lang.Enum<HttpSender.RequestState>
-
- org.eclipse.jetty.client.HttpSender.RequestState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpSender.RequestState>
- Enclosing class:
- HttpSender
private static enum HttpSender.RequestState extends java.lang.Enum<HttpSender.RequestState>
The request statesHttpSender
goes through when sending a request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGIN
The request has been dequeuedCOMMIT
The request headers (and possibly some content) have been sentCONTENT
The request content is being sentFAILURE
The request is failedHEADERS
The request headers (and possibly some content) is about to be sentQUEUED
The request is queued, the initial stateTRANSIENT
One of the state transition methods is being executed.
-
Constructor Summary
Constructors Modifier Constructor Description private
RequestState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpSender.RequestState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpSender.RequestState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSIENT
public static final HttpSender.RequestState TRANSIENT
One of the state transition methods is being executed.
-
QUEUED
public static final HttpSender.RequestState QUEUED
The request is queued, the initial state
-
BEGIN
public static final HttpSender.RequestState BEGIN
The request has been dequeued
-
HEADERS
public static final HttpSender.RequestState HEADERS
The request headers (and possibly some content) is about to be sent
-
COMMIT
public static final HttpSender.RequestState COMMIT
The request headers (and possibly some content) have been sent
-
CONTENT
public static final HttpSender.RequestState CONTENT
The request content is being sent
-
FAILURE
public static final HttpSender.RequestState FAILURE
The request is failed
-
-
Method Detail
-
values
public static HttpSender.RequestState[] 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 (HttpSender.RequestState c : HttpSender.RequestState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpSender.RequestState 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
-
-