Enum Class HttpSender.SenderState
- All Implemented Interfaces:
Serializable, Comparable<HttpSender.SenderState>, Constable
- Enclosing class:
HttpSender
The sender states
HttpSender goes through when sending a request.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHttpSenderhas finished to send the requestHttpSenderis sending the headers but will wait for 100 Continue before sending the contentHttpSenderis currently sending the headers, will wait for 100 Continue, and deferred content is available to be sentHttpSenderhas failed to send the requestHttpSenderis not sending request headers nor request contentHttpSenderis sending the headers, while 100 Continue has arrivedHttpSenderis sending the headers, while 100 Continue has arrived, and deferred content is available to be sentHttpSenderis sending the request header or request contentHttpSenderis currently sending the request, and deferred content is available to be sentHttpSenderhas sent the headers and is waiting for 100 Continue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpSender.SenderStateReturns the enum constant of this class with the specified name.static HttpSender.SenderState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
HttpSenderis not sending request headers nor request content -
SENDING
HttpSenderis sending the request header or request content -
SENDING_WITH_CONTENT
HttpSenderis currently sending the request, and deferred content is available to be sent -
EXPECTING
HttpSenderis sending the headers but will wait for 100 Continue before sending the content -
EXPECTING_WITH_CONTENT
HttpSenderis currently sending the headers, will wait for 100 Continue, and deferred content is available to be sent -
WAITING
HttpSenderhas sent the headers and is waiting for 100 Continue -
PROCEEDING
HttpSenderis sending the headers, while 100 Continue has arrived -
PROCEEDING_WITH_CONTENT
HttpSenderis sending the headers, while 100 Continue has arrived, and deferred content is available to be sent -
COMPLETED
HttpSenderhas finished to send the request -
FAILED
HttpSenderhas failed to send the request
-
-
Constructor Details
-
SenderState
private SenderState()
-
-
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
-