public static enum Dns.ResponseCode extends Enum<Dns.ResponseCode> implements ProtocolEnum
Enum Constant and Description |
---|
BAD_KEY
Bad key.
|
BAD_SIG
Bad signature.
|
BAD_TIMESTAMP
Bad timestamp.
|
BAD_VERSION
Bad extension mechanism for DNS version.
|
DOMAIN_NAME_SHOULD_NOT_EXIST
Domain name should not exist.
|
FORMAT_ERROR
Name server was unable to interpret the query.
|
NAME_ERROR
Domain name in the query does not exist.
|
NO_ERROR
No Error condition.
|
NOT_AUTH
Not authoritative for zone.
|
NOT_IMPL
Not implemented.
|
NOT_ZONE
Name not in zone.
|
NXRRSET
Some RRset that ought not to exist, does exist
|
RECORD_DOES_NOT_EXIST
Resource record set does not exist.
|
RECORD_SHOULD_NOT_EXIST
Resource record set should not exist.
|
REFUSED
Connection refused.
|
SERVER_FAILURE
Name server was unable to process the query - internal problem.
|
YXDOMAIN
Some name that ought not to exist, does exist
|
YXRRSET
Some RRset, that ought not to exist, does exist
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static Dns.ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dns.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dns.ResponseCode NO_ERROR
public static final Dns.ResponseCode FORMAT_ERROR
public static final Dns.ResponseCode SERVER_FAILURE
public static final Dns.ResponseCode NAME_ERROR
public static final Dns.ResponseCode NOT_IMPL
public static final Dns.ResponseCode REFUSED
public static final Dns.ResponseCode YXDOMAIN
public static final Dns.ResponseCode YXRRSET
public static final Dns.ResponseCode NXRRSET
public static final Dns.ResponseCode DOMAIN_NAME_SHOULD_NOT_EXIST
public static final Dns.ResponseCode RECORD_SHOULD_NOT_EXIST
public static final Dns.ResponseCode RECORD_DOES_NOT_EXIST
public static final Dns.ResponseCode NOT_AUTH
public static final Dns.ResponseCode NOT_ZONE
public static final Dns.ResponseCode BAD_VERSION
public static final Dns.ResponseCode BAD_SIG
public static final Dns.ResponseCode BAD_KEY
public static final Dns.ResponseCode BAD_TIMESTAMP
public static Dns.ResponseCode[] values()
for (Dns.ResponseCode c : Dns.ResponseCode.values()) System.out.println(c);
public static Dns.ResponseCode 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 code()
ProtocolEnum
code
in interface ProtocolEnum
Copyright © 2015. All Rights Reserved.