|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.http.transport.HttpConnectionState
public final class HttpConnectionState
Enumerated type of a http connection state. Instances of this class are immutable. The following http connection states are defined:
| Field Summary | |
|---|---|
static HttpConnectionState |
CONNECTION_CLOSED
The HttpConnectionState connection closed. |
static HttpConnectionState |
CONNECTION_ESTABLISHED
The HttpConnectionState connection established. |
static HttpConnectionState |
CONNECTION_EXECUTED
The HttpConnectionState connection executed. |
static HttpConnectionState |
CONNECTION_NOT_ESTABLISHED
The HttpConnectionState connection not established. |
static HttpConnectionState |
CONNECTION_RELEASED
The HttpConnectionState connection released. |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the HttpConnectionStates as values. |
static List |
VALUES
Immutable list of the HttpConnectionStates. |
| Method Summary | |
|---|---|
static HttpConnectionState |
fromInt(int i)
Creates a HttpConnectionState object from its int representation. |
static HttpConnectionState |
fromString(String str)
Creates a HttpConnectionState object from its String representation. |
int |
toInt()
Returns the int representation of this http connection state. |
String |
toString()
Returns the String representation of this http connection state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NAME
public static final HttpConnectionState CONNECTION_NOT_ESTABLISHED
public static final HttpConnectionState CONNECTION_ESTABLISHED
public static final HttpConnectionState CONNECTION_EXECUTED
public static final HttpConnectionState CONNECTION_RELEASED
public static final HttpConnectionState CONNECTION_CLOSED
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static HttpConnectionState fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the http connection state.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal http connection state table.
public static HttpConnectionState fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
http connection state.
ArgumentMalformedException - If the given str value isn't
listed in the internal http connection state table.public int toInt()
toInt in interface EnumTypepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||