public static enum DNSMessage.RESPONSE_CODE extends Enum<DNSMessage.RESPONSE_CODE>
| Enum Constant and Description |
|---|
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(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 DNSMessage.RESPONSE_CODE[] values()
for (DNSMessage.RESPONSE_CODE c : DNSMessage.RESPONSE_CODE.values()) System.out.println(c);
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 byte getValue()
public static DNSMessage.RESPONSE_CODE getResponseCode(int value)
value - The byte value.IllegalArgumentException - if the value is not in the range of
0..15.Copyright © 2014–2015. All rights reserved.