net.sf.xenqtt.message
Enum ConnectReturnCode
java.lang.Object
java.lang.Enum<ConnectReturnCode>
net.sf.xenqtt.message.ConnectReturnCode
- All Implemented Interfaces:
- Serializable, Comparable<ConnectReturnCode>
public enum ConnectReturnCode
- extends Enum<ConnectReturnCode>
The code returned in the ConnAckMessage
. The order is important as the ordinal is the numeric value used in messages.
ACCEPTED
public static final ConnectReturnCode ACCEPTED
UNACCEPTABLE_PROTOCOL_VERSION
public static final ConnectReturnCode UNACCEPTABLE_PROTOCOL_VERSION
IDENTIFIER_REJECTED
public static final ConnectReturnCode IDENTIFIER_REJECTED
SERVER_UNAVAILABLE
public static final ConnectReturnCode SERVER_UNAVAILABLE
BAD_CREDENTIALS
public static final ConnectReturnCode BAD_CREDENTIALS
NOT_AUTHORIZED
public static final ConnectReturnCode NOT_AUTHORIZED
OTHER
public static final ConnectReturnCode OTHER
values
public static ConnectReturnCode[] 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 (ConnectReturnCode c : ConnectReturnCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConnectReturnCode valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
lookup
public static ConnectReturnCode lookup(int value)
- Returns:
- The
ConnectReturnCode
for the specified value. OTHER
if the value does not match any other explicit enum.
value
public int value()
- Returns:
- The numeric value for this
ConnectReturnCode
Copyright © 2013. All Rights Reserved.