private static enum HttpSender.SenderState extends java.lang.Enum<HttpSender.SenderState>
HttpSender
goes through when sending a request.Enum Constant and Description |
---|
COMPLETED
HttpSender has finished to send the request |
EXPECTING
HttpSender is sending the headers but will wait for 100 Continue before sending the content |
EXPECTING_WITH_CONTENT
HttpSender is currently sending the headers, will wait for 100 Continue, and deferred content is available to be sent |
FAILED
HttpSender has failed to send the request |
IDLE
HttpSender is not sending request headers nor request content |
PROCEEDING
HttpSender is sending the headers, while 100 Continue has arrived |
PROCEEDING_WITH_CONTENT
HttpSender is sending the headers, while 100 Continue has arrived, and deferred content is available to be sent |
SENDING
HttpSender is sending the request header or request content |
SENDING_WITH_CONTENT
HttpSender is currently sending the request, and deferred content is available to be sent |
WAITING
HttpSender has sent the headers and is waiting for 100 Continue |
Modifier and Type | Method and 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.
|
public static final HttpSender.SenderState IDLE
HttpSender
is not sending request headers nor request contentpublic static final HttpSender.SenderState SENDING
HttpSender
is sending the request header or request contentpublic static final HttpSender.SenderState SENDING_WITH_CONTENT
HttpSender
is currently sending the request, and deferred content is available to be sentpublic static final HttpSender.SenderState EXPECTING
HttpSender
is sending the headers but will wait for 100 Continue before sending the contentpublic 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 sentpublic static final HttpSender.SenderState WAITING
HttpSender
has sent the headers and is waiting for 100 Continuepublic static final HttpSender.SenderState PROCEEDING
HttpSender
is sending the headers, while 100 Continue has arrivedpublic static final HttpSender.SenderState PROCEEDING_WITH_CONTENT
HttpSender
is sending the headers, while 100 Continue has arrived, and deferred content is available to be sentpublic static final HttpSender.SenderState COMPLETED
HttpSender
has finished to send the requestpublic static final HttpSender.SenderState FAILED
HttpSender
has failed to send the requestpublic static HttpSender.SenderState[] values()
for (HttpSender.SenderState c : HttpSender.SenderState.values()) System.out.println(c);
public static HttpSender.SenderState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null