public static enum DnsMessage.RESPONSE_CODE extends java.lang.Enum<DnsMessage.RESPONSE_CODE>
| Enum Constant and Description |
|---|
BADALG |
BADCOOKIE |
BADKEY |
BADMODE |
BADNAME |
BADTIME |
BADTRUNC |
BADVERS_BADSIG |
FORMAT_ERR |
NO_ERROR |
NO_IMP |
NOT_AUTH |
NOT_ZONE |
NX_DOMAIN |
NXRRSET |
REFUSED |
SERVER_FAIL |
YXDOMAIN |
YXRRSET |
| 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(java.lang.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 NO_ERROR
public static final DnsMessage.RESPONSE_CODE FORMAT_ERR
public static final DnsMessage.RESPONSE_CODE SERVER_FAIL
public static final DnsMessage.RESPONSE_CODE NX_DOMAIN
public static final DnsMessage.RESPONSE_CODE NO_IMP
public static final DnsMessage.RESPONSE_CODE REFUSED
public static final DnsMessage.RESPONSE_CODE YXDOMAIN
public static final DnsMessage.RESPONSE_CODE YXRRSET
public static final DnsMessage.RESPONSE_CODE NXRRSET
public static final DnsMessage.RESPONSE_CODE NOT_AUTH
public static final DnsMessage.RESPONSE_CODE NOT_ZONE
public static final DnsMessage.RESPONSE_CODE BADVERS_BADSIG
public static final DnsMessage.RESPONSE_CODE BADKEY
public static final DnsMessage.RESPONSE_CODE BADTIME
public static final DnsMessage.RESPONSE_CODE BADMODE
public static final DnsMessage.RESPONSE_CODE BADNAME
public static final DnsMessage.RESPONSE_CODE BADALG
public static final DnsMessage.RESPONSE_CODE BADTRUNC
public static final DnsMessage.RESPONSE_CODE BADCOOKIE
public static DnsMessage.RESPONSE_CODE[] values()
for (DnsMessage.RESPONSE_CODE c : DnsMessage.RESPONSE_CODE.values()) System.out.println(c);
public static DnsMessage.RESPONSE_CODE valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getValue()
public static DnsMessage.RESPONSE_CODE getResponseCode(int value) throws java.lang.IllegalArgumentException
value - The byte value.java.lang.IllegalArgumentException - if the value is not in the range of 0..15.