Package io.netty.handler.codec.mqtt
Enum MqttConnectReturnCode
- java.lang.Object
-
- java.lang.Enum<MqttConnectReturnCode>
-
- io.netty.handler.codec.mqtt.MqttConnectReturnCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MqttConnectReturnCode>
public enum MqttConnectReturnCode extends java.lang.Enum<MqttConnectReturnCode>
Return Code ofMqttConnAckMessage
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private byte
byteValue
private static java.util.Map<java.lang.Byte,MqttConnectReturnCode>
VALUE_TO_CODE_MAP
-
Constructor Summary
Constructors Modifier Constructor Description private
MqttConnectReturnCode(byte byteValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
static MqttConnectReturnCode
valueOf(byte b)
Returns the enum constant of this type with the specified name.static MqttConnectReturnCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MqttConnectReturnCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION_ACCEPTED
public static final MqttConnectReturnCode CONNECTION_ACCEPTED
-
CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION
public static final MqttConnectReturnCode CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION
-
CONNECTION_REFUSED_IDENTIFIER_REJECTED
public static final MqttConnectReturnCode CONNECTION_REFUSED_IDENTIFIER_REJECTED
-
CONNECTION_REFUSED_SERVER_UNAVAILABLE
public static final MqttConnectReturnCode CONNECTION_REFUSED_SERVER_UNAVAILABLE
-
CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD
public static final MqttConnectReturnCode CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD
-
CONNECTION_REFUSED_NOT_AUTHORIZED
public static final MqttConnectReturnCode CONNECTION_REFUSED_NOT_AUTHORIZED
-
-
Field Detail
-
VALUE_TO_CODE_MAP
private static final java.util.Map<java.lang.Byte,MqttConnectReturnCode> VALUE_TO_CODE_MAP
-
byteValue
private final byte byteValue
-
-
Method Detail
-
values
public static MqttConnectReturnCode[] 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 (MqttConnectReturnCode c : MqttConnectReturnCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MqttConnectReturnCode 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
-
byteValue
public byte byteValue()
-
valueOf
public static MqttConnectReturnCode valueOf(byte b)
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:
b
- 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
-
-