public static enum DnsMessage.RESPONSE_CODE extends Enum<DnsMessage.RESPONSE_CODE>
| Enum Constant and Description |
|---|
BADALGBad algorithm |
BADCOOKIEBad cookie |
BADKEYBad key |
BADMODEBad mode |
BADNAMEBad name |
BADTIMEBad timestamp |
BADTRUNCBad truncation |
BADVERS_BADSIGBad version or bad signature |
FORMAT_ERRFormat error |
NO_ERRORNo error |
NO_IMPNot implemented |
NOT_AUTHServer not authoritative |
NOT_ZONEName not in zone |
NX_DOMAINNon-existent domain |
NXRRSETRR set does not exist |
REFUSEDQuery refused |
SERVER_FAILServer failure |
YXDOMAINName exists when it should not |
YXRRSETRR set exists when it should not |
| Modifier and Type | Method and Description |
|---|---|
static DnsMessage.RESPONSE_CODE | getResponseCode(int value)Retrieve the response code for a byte value. |
byte | getValue()Retrieve the byte value of the response code. |
static DnsMessage.RESPONSE_CODE | valueOf(String name)Returns the enum constant of this type with the specified name. |
static DnsMessage.RESPONSE_CODE[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final DnsMessage.RESPONSE_CODE BADALG
public static final DnsMessage.RESPONSE_CODE BADCOOKIE
public static final DnsMessage.RESPONSE_CODE BADKEY
public static final DnsMessage.RESPONSE_CODE BADMODE
public static final DnsMessage.RESPONSE_CODE BADNAME
public static final DnsMessage.RESPONSE_CODE BADTIME
public static final DnsMessage.RESPONSE_CODE BADTRUNC
public static final DnsMessage.RESPONSE_CODE BADVERS_BADSIG
public static final DnsMessage.RESPONSE_CODE FORMAT_ERR
public static final DnsMessage.RESPONSE_CODE NO_ERROR
public static final DnsMessage.RESPONSE_CODE NO_IMP
public static final DnsMessage.RESPONSE_CODE NOT_AUTH
public static final DnsMessage.RESPONSE_CODE NOT_ZONE
public static final DnsMessage.RESPONSE_CODE NX_DOMAIN
public static final DnsMessage.RESPONSE_CODE NXRRSET
public static final DnsMessage.RESPONSE_CODE REFUSED
public static final DnsMessage.RESPONSE_CODE SERVER_FAIL
public static final DnsMessage.RESPONSE_CODE YXDOMAIN
public static final DnsMessage.RESPONSE_CODE YXRRSET
public static DnsMessage.RESPONSE_CODE getResponseCode(int value) throws IllegalArgumentException
value - The byte value.IllegalArgumentException - if the value is not in the range of 0..15.public byte getValue()
public static DnsMessage.RESPONSE_CODE 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 static DnsMessage.RESPONSE_CODE[] values()
for (DnsMessage.RESPONSE_CODE c : DnsMessage.RESPONSE_CODE.values()) System.out.println(c);