- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,DnsRCode>
-
- org.pcap4j.packet.namednumber.DnsRCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DnsRCode>
public final class DnsRCode extends NamedNumber<java.lang.Byte,DnsRCode>
DNS RCODE- Since:
- pcap4j 1.7.1
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DnsRCodeFORM_ERRFormat Error: 1static DnsRCodeNO_ERRORNo Error: 0static DnsRCodeNOT_AUTHNot Authorized: 9static DnsRCodeNOT_IMPNot Implemented: 4static DnsRCodeNOT_ZONEName not contained in zone: 10static DnsRCodeNX_DOMAINNon-Existent Domain: 3static DnsRCodeNX_RR_SETRR Set that should exist does not: 8static DnsRCodeREFUSEDQuery Refused: 5private static java.util.Map<java.lang.Byte,DnsRCode>registryprivate static longserialVersionUIDstatic DnsRCodeSERV_FAILServer Failure: 2static DnsRCodeYX_DOMAINName Exists when it should not: 6static DnsRCodeYX_RR_SETRR Set Exists when it should not: 7
-
Constructor Summary
Constructors Constructor Description DnsRCode(java.lang.Byte value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DnsRCode o)static DnsRCodegetInstance(java.lang.Byte value)static DnsRCoderegister(DnsRCode code)-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, toString, value, valueAsString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
NO_ERROR
public static final DnsRCode NO_ERROR
No Error: 0
-
FORM_ERR
public static final DnsRCode FORM_ERR
Format Error: 1
-
SERV_FAIL
public static final DnsRCode SERV_FAIL
Server Failure: 2
-
NX_DOMAIN
public static final DnsRCode NX_DOMAIN
Non-Existent Domain: 3
-
NOT_IMP
public static final DnsRCode NOT_IMP
Not Implemented: 4
-
REFUSED
public static final DnsRCode REFUSED
Query Refused: 5
-
YX_DOMAIN
public static final DnsRCode YX_DOMAIN
Name Exists when it should not: 6
-
YX_RR_SET
public static final DnsRCode YX_RR_SET
RR Set Exists when it should not: 7
-
NX_RR_SET
public static final DnsRCode NX_RR_SET
RR Set that should exist does not: 8
-
NOT_AUTH
public static final DnsRCode NOT_AUTH
Not Authorized: 9
-
NOT_ZONE
public static final DnsRCode NOT_ZONE
Name not contained in zone: 10
-
registry
private static final java.util.Map<java.lang.Byte,DnsRCode> registry
-
-
Method Detail
-
getInstance
public static DnsRCode getInstance(java.lang.Byte value)
- Parameters:
value- value- Returns:
- a DnsRCode object.
-
register
public static DnsRCode register(DnsRCode code)
- Parameters:
code- code- Returns:
- a DnsRCode object.
-
compareTo
public int compareTo(DnsRCode o)
- Specified by:
compareToin interfacejava.lang.Comparable<DnsRCode>- Specified by:
compareToin classNamedNumber<java.lang.Byte,DnsRCode>
-
-