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