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 statesHttpSendergoes through when sending a request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEDHttpSenderhas finished to send the requestEXPECTINGHttpSenderis sending the headers but will wait for 100 Continue before sending the contentEXPECTING_WITH_CONTENTHttpSenderis currently sending the headers, will wait for 100 Continue, and deferred content is available to be sentFAILEDHttpSenderhas failed to send the requestIDLEHttpSenderis not sending request headers nor request contentPROCEEDINGHttpSenderis sending the headers, while 100 Continue has arrivedPROCEEDING_WITH_CONTENTHttpSenderis sending the headers, while 100 Continue has arrived, and deferred content is available to be sentSENDINGHttpSenderis sending the request header or request contentSENDING_WITH_CONTENTHttpSenderis currently sending the request, and deferred content is available to be sentWAITINGHttpSenderhas sent the headers and is waiting for 100 Continue
-
Constructor Summary
Constructors Modifier Constructor Description privateSenderState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpSender.SenderStatevalueOf(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
HttpSenderis not sending request headers nor request content
-
SENDING
public static final HttpSender.SenderState SENDING
HttpSenderis sending the request header or request content
-
SENDING_WITH_CONTENT
public static final HttpSender.SenderState SENDING_WITH_CONTENT
HttpSenderis currently sending the request, and deferred content is available to be sent
-
EXPECTING
public static final HttpSender.SenderState EXPECTING
HttpSenderis sending the headers but will wait for 100 Continue before sending the content
-
EXPECTING_WITH_CONTENT
public static final HttpSender.SenderState EXPECTING_WITH_CONTENT
HttpSenderis currently sending the headers, will wait for 100 Continue, and deferred content is available to be sent
-
WAITING
public static final HttpSender.SenderState WAITING
HttpSenderhas sent the headers and is waiting for 100 Continue
-
PROCEEDING
public static final HttpSender.SenderState PROCEEDING
HttpSenderis sending the headers, while 100 Continue has arrived
-
PROCEEDING_WITH_CONTENT
public static final HttpSender.SenderState PROCEEDING_WITH_CONTENT
HttpSenderis sending the headers, while 100 Continue has arrived, and deferred content is available to be sent
-
COMPLETED
public static final HttpSender.SenderState COMPLETED
HttpSenderhas finished to send the request
-
FAILED
public static final HttpSender.SenderState FAILED
HttpSenderhas 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
-
-