Enum HttpConnection.State
- java.lang.Object
-
- java.lang.Enum<HttpConnection.State>
-
- org.glassfish.jersey.jdk.connector.internal.HttpConnection.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpConnection.State>
- Enclosing class:
- HttpConnection
static enum HttpConnection.State extends java.lang.Enum<HttpConnection.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
CLOSED_BY_SERVER
CONNECT_TIMEOUT
CONNECTING
CREATED
ERROR
IDLE
IDLE_TIMEOUT
RECEIVED
RECEIVING_BODY
RECEIVING_HEADER
RESPONSE_TIMEOUT
SENDING_REQUEST
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpConnection.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpConnection.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final HttpConnection.State CREATED
-
CONNECTING
public static final HttpConnection.State CONNECTING
-
CONNECT_TIMEOUT
public static final HttpConnection.State CONNECT_TIMEOUT
-
IDLE
public static final HttpConnection.State IDLE
-
SENDING_REQUEST
public static final HttpConnection.State SENDING_REQUEST
-
RECEIVING_HEADER
public static final HttpConnection.State RECEIVING_HEADER
-
RECEIVING_BODY
public static final HttpConnection.State RECEIVING_BODY
-
RECEIVED
public static final HttpConnection.State RECEIVED
-
RESPONSE_TIMEOUT
public static final HttpConnection.State RESPONSE_TIMEOUT
-
CLOSED_BY_SERVER
public static final HttpConnection.State CLOSED_BY_SERVER
-
CLOSED
public static final HttpConnection.State CLOSED
-
ERROR
public static final HttpConnection.State ERROR
-
IDLE_TIMEOUT
public static final HttpConnection.State IDLE_TIMEOUT
-
-
Method Detail
-
values
public static HttpConnection.State[] 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 (HttpConnection.State c : HttpConnection.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpConnection.State 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
-
-