public enum ReturnCode extends Enum<ReturnCode>
CONNACK message.| Enum Constant and Description |
|---|
ACCEPTED |
REFUSED_BAD_USERNAME_OR_PASSWORD |
REFUSED_IDENTIFIER_REJECTED |
REFUSED_NOT_AUTHORIZED |
REFUSED_SERVER_UNAVAILABLE |
REFUSED_UNACCEPTABLE_PROTOCOL_VERSION |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static ReturnCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReturnCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static ReturnCode |
with(int code) |
public static final ReturnCode ACCEPTED
public static final ReturnCode REFUSED_UNACCEPTABLE_PROTOCOL_VERSION
public static final ReturnCode REFUSED_IDENTIFIER_REJECTED
public static final ReturnCode REFUSED_SERVER_UNAVAILABLE
public static final ReturnCode REFUSED_BAD_USERNAME_OR_PASSWORD
public static final ReturnCode REFUSED_NOT_AUTHORIZED
public static ReturnCode[] values()
for (ReturnCode c : ReturnCode.values()) System.out.println(c);
public static ReturnCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public static ReturnCode with(int code)
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.