|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConnectReturnCode>
net.sf.xenqtt.message.ConnectReturnCode
public enum ConnectReturnCode
The code returned in the ConnAckMessage
. The order is important as the ordinal is the numeric value used in messages.
Enum Constant Summary | |
---|---|
ACCEPTED
Connection Accepted (success) |
|
BAD_CREDENTIALS
Connection Refused: bad user name or password |
|
IDENTIFIER_REJECTED
Connection Refused: identifier rejected. |
|
NOT_AUTHORIZED
Connection Refused: not authorized |
|
OTHER
a return code unknown at the time of this writing |
|
SERVER_UNAVAILABLE
Connection Refused: server unavailable |
|
UNACCEPTABLE_PROTOCOL_VERSION
Connection Refused: unacceptable protocol version |
Method Summary | |
---|---|
static ConnectReturnCode |
lookup(int value)
|
int |
value()
|
static ConnectReturnCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConnectReturnCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConnectReturnCode ACCEPTED
public static final ConnectReturnCode UNACCEPTABLE_PROTOCOL_VERSION
public static final ConnectReturnCode IDENTIFIER_REJECTED
public static final ConnectReturnCode SERVER_UNAVAILABLE
public static final ConnectReturnCode BAD_CREDENTIALS
public static final ConnectReturnCode NOT_AUTHORIZED
public static final ConnectReturnCode OTHER
Method Detail |
---|
public static ConnectReturnCode[] values()
for (ConnectReturnCode c : ConnectReturnCode.values()) System.out.println(c);
public static ConnectReturnCode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ConnectReturnCode lookup(int value)
ConnectReturnCode
for the specified value. OTHER
if the value does not match any other explicit enum.public int value()
ConnectReturnCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |