- java.lang.Object
-
- io.netty5.handler.codec.dns.DnsResponseCode
-
- All Implemented Interfaces:
Comparable<DnsResponseCode>
@UnstableApi public class DnsResponseCode extends Object implements Comparable<DnsResponseCode>
The DNSRCODE
, as defined in RFC2929.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description DnsResponseCode(int code, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DnsResponseCode o)
boolean
equals(Object o)
Equality ofDnsResponseCode
only depends onintValue()
.int
hashCode()
int
intValue()
Returns the error code for thisDnsResponseCode
.String
toString()
Returns a formatted error message for thisDnsResponseCode
.static DnsResponseCode
valueOf(int responseCode)
Returns theDnsResponseCode
that corresponds with the givenresponseCode
.
-
-
-
Field Detail
-
NOERROR
public static final DnsResponseCode NOERROR
The 'NoError' DNS RCODE (0), as defined in RFC1035.
-
FORMERR
public static final DnsResponseCode FORMERR
The 'FormErr' DNS RCODE (1), as defined in RFC1035.
-
SERVFAIL
public static final DnsResponseCode SERVFAIL
The 'ServFail' DNS RCODE (2), as defined in RFC1035.
-
NXDOMAIN
public static final DnsResponseCode NXDOMAIN
The 'NXDomain' DNS RCODE (3), as defined in RFC1035.
-
NOTIMP
public static final DnsResponseCode NOTIMP
The 'NotImp' DNS RCODE (4), as defined in RFC1035.
-
REFUSED
public static final DnsResponseCode REFUSED
The 'Refused' DNS RCODE (5), as defined in RFC1035.
-
YXDOMAIN
public static final DnsResponseCode YXDOMAIN
The 'YXDomain' DNS RCODE (6), as defined in RFC2136.
-
YXRRSET
public static final DnsResponseCode YXRRSET
The 'YXRRSet' DNS RCODE (7), as defined in RFC2136.
-
NXRRSET
public static final DnsResponseCode NXRRSET
The 'NXRRSet' DNS RCODE (8), as defined in RFC2136.
-
NOTAUTH
public static final DnsResponseCode NOTAUTH
The 'NotAuth' DNS RCODE (9), as defined in RFC2136.
-
NOTZONE
public static final DnsResponseCode NOTZONE
The 'NotZone' DNS RCODE (10), as defined in RFC2136.
-
BADVERS_OR_BADSIG
public static final DnsResponseCode BADVERS_OR_BADSIG
-
BADKEY
public static final DnsResponseCode BADKEY
The 'BADKEY' DNS RCODE (17), as defined in RFC2845.
-
BADTIME
public static final DnsResponseCode BADTIME
The 'BADTIME' DNS RCODE (18), as defined in RFC2845.
-
BADMODE
public static final DnsResponseCode BADMODE
The 'BADMODE' DNS RCODE (19), as defined in RFC2930.
-
BADNAME
public static final DnsResponseCode BADNAME
The 'BADNAME' DNS RCODE (20), as defined in RFC2930.
-
BADALG
public static final DnsResponseCode BADALG
The 'BADALG' DNS RCODE (21), as defined in RFC2930.
-
-
Constructor Detail
-
DnsResponseCode
public DnsResponseCode(int code, String name)
-
-
Method Detail
-
valueOf
public static DnsResponseCode valueOf(int responseCode)
Returns theDnsResponseCode
that corresponds with the givenresponseCode
.- Parameters:
responseCode
- the DNS RCODE- Returns:
- the corresponding
DnsResponseCode
-
intValue
public int intValue()
Returns the error code for thisDnsResponseCode
.
-
compareTo
public int compareTo(DnsResponseCode o)
- Specified by:
compareTo
in interfaceComparable<DnsResponseCode>
-
equals
public boolean equals(Object o)
Equality ofDnsResponseCode
only depends onintValue()
.
-
toString
public String toString()
Returns a formatted error message for thisDnsResponseCode
.
-
-