@UnstableApi public class DnsResponseCode extends Object implements Comparable<DnsResponseCode>
RCODE
, as defined in RFC2929.Modifier and Type | Field and Description |
---|---|
static DnsResponseCode |
BADALG
The 'BADALG' DNS RCODE (21), as defined in RFC2930.
|
static DnsResponseCode |
BADKEY
The 'BADKEY' DNS RCODE (17), as defined in RFC2845.
|
static DnsResponseCode |
BADMODE
The 'BADMODE' DNS RCODE (19), as defined in RFC2930.
|
static DnsResponseCode |
BADNAME
The 'BADNAME' DNS RCODE (20), as defined in RFC2930.
|
static DnsResponseCode |
BADTIME
The 'BADTIME' DNS RCODE (18), as defined in RFC2845.
|
static DnsResponseCode |
BADVERS_OR_BADSIG
|
static DnsResponseCode |
FORMERR
The 'FormErr' DNS RCODE (1), as defined in RFC1035.
|
static DnsResponseCode |
NOERROR
The 'NoError' DNS RCODE (0), as defined in RFC1035.
|
static DnsResponseCode |
NOTAUTH
The 'NotAuth' DNS RCODE (9), as defined in RFC2136.
|
static DnsResponseCode |
NOTIMP
The 'NotImp' DNS RCODE (4), as defined in RFC1035.
|
static DnsResponseCode |
NOTZONE
The 'NotZone' DNS RCODE (10), as defined in RFC2136.
|
static DnsResponseCode |
NXDOMAIN
The 'NXDomain' DNS RCODE (3), as defined in RFC1035.
|
static DnsResponseCode |
NXRRSET
The 'NXRRSet' DNS RCODE (8), as defined in RFC2136.
|
static DnsResponseCode |
REFUSED
The 'Refused' DNS RCODE (5), as defined in RFC1035.
|
static DnsResponseCode |
SERVFAIL
The 'ServFail' DNS RCODE (2), as defined in RFC1035.
|
static DnsResponseCode |
YXDOMAIN
The 'YXDomain' DNS RCODE (6), as defined in RFC2136.
|
static DnsResponseCode |
YXRRSET
The 'YXRRSet' DNS RCODE (7), as defined in RFC2136.
|
Constructor and Description |
---|
DnsResponseCode(int code,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DnsResponseCode o) |
boolean |
equals(Object o)
Equality of
DnsResponseCode only depends on intValue() . |
int |
hashCode() |
int |
intValue()
Returns the error code for this
DnsResponseCode . |
String |
toString()
Returns a formatted error message for this
DnsResponseCode . |
static DnsResponseCode |
valueOf(int responseCode)
Returns the
DnsResponseCode that corresponds with the given responseCode . |
public static final DnsResponseCode NOERROR
public static final DnsResponseCode FORMERR
public static final DnsResponseCode SERVFAIL
public static final DnsResponseCode NXDOMAIN
public static final DnsResponseCode NOTIMP
public static final DnsResponseCode REFUSED
public static final DnsResponseCode YXDOMAIN
public static final DnsResponseCode YXRRSET
public static final DnsResponseCode NXRRSET
public static final DnsResponseCode NOTAUTH
public static final DnsResponseCode NOTZONE
public static final DnsResponseCode BADVERS_OR_BADSIG
public static final DnsResponseCode BADKEY
public static final DnsResponseCode BADTIME
public static final DnsResponseCode BADMODE
public static final DnsResponseCode BADNAME
public static final DnsResponseCode BADALG
public DnsResponseCode(int code, String name)
public static DnsResponseCode valueOf(int responseCode)
DnsResponseCode
that corresponds with the given responseCode
.responseCode
- the DNS RCODEDnsResponseCode
public int intValue()
DnsResponseCode
.public int compareTo(DnsResponseCode o)
compareTo
in interface Comparable<DnsResponseCode>
public boolean equals(Object o)
DnsResponseCode
only depends on intValue()
.public String toString()
DnsResponseCode
.Copyright © 2008–2017 The Netty Project. All rights reserved.