Package org.eclipse.jetty.client
Enum HttpSender.SenderState
- java.lang.Object
-
- java.lang.Enum<HttpSender.SenderState>
-
- org.eclipse.jetty.client.HttpSender.SenderState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpSender.SenderState>
- Enclosing class:
- HttpSender
private static enum HttpSender.SenderState extends java.lang.Enum<HttpSender.SenderState>
The sender statesHttpSender
goes through when sending a request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETED
HttpSender
has finished to send the requestEXPECTING
HttpSender
is sending the headers but will wait for 100 Continue before sending the contentEXPECTING_WITH_CONTENT
HttpSender
is currently sending the headers, will wait for 100 Continue, and deferred content is available to be sentFAILED
HttpSender
has failed to send the requestIDLE
HttpSender
is not sending request headers nor request contentPROCEEDING
HttpSender
is sending the headers, while 100 Continue has arrivedPROCEEDING_WITH_CONTENT
HttpSender
is sending the headers, while 100 Continue has arrived, and deferred content is available to be sentSENDING
HttpSender
is sending the request header or request contentSENDING_WITH_CONTENT
HttpSender
is currently sending the request, and deferred content is available to be sentWAITING
HttpSender
has sent the headers and is waiting for 100 Continue
-
Constructor Summary
Constructors Modifier Constructor Description private
SenderState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpSender.SenderState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpSender.SenderState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final HttpSender.SenderState IDLE
HttpSender
is not sending request headers nor request content
-
SENDING
public static final HttpSender.SenderState SENDING
HttpSender
is sending the request header or request content
-
SENDING_WITH_CONTENT
public static final HttpSender.SenderState SENDING_WITH_CONTENT
HttpSender
is currently sending the request, and deferred content is available to be sent
-
EXPECTING
public static final HttpSender.SenderState EXPECTING
HttpSender
is sending the headers but will wait for 100 Continue before sending the content
-
EXPECTING_WITH_CONTENT
public static final HttpSender.SenderState EXPECTING_WITH_CONTENT
HttpSender
is currently sending the headers, will wait for 100 Continue, and deferred content is available to be sent
-
WAITING
public static final HttpSender.SenderState WAITING
HttpSender
has sent the headers and is waiting for 100 Continue
-
PROCEEDING
public static final HttpSender.SenderState PROCEEDING
HttpSender
is sending the headers, while 100 Continue has arrived
-
PROCEEDING_WITH_CONTENT
public static final HttpSender.SenderState PROCEEDING_WITH_CONTENT
HttpSender
is sending the headers, while 100 Continue has arrived, and deferred content is available to be sent
-
COMPLETED
public static final HttpSender.SenderState COMPLETED
HttpSender
has finished to send the request
-
FAILED
public static final HttpSender.SenderState FAILED
HttpSender
has failed to send the request
-
-
Method Detail
-
values
public static HttpSender.SenderState[] 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.SenderState c : HttpSender.SenderState.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.SenderState 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
-
-