Package org.minidns.dnsmessage
Enum DnsMessage.RESPONSE_CODE
- java.lang.Object
- 
- java.lang.Enum<DnsMessage.RESPONSE_CODE>
- 
- org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<DnsMessage.RESPONSE_CODE>
 - Enclosing class:
- DnsMessage
 
 public static enum DnsMessage.RESPONSE_CODE extends Enum<DnsMessage.RESPONSE_CODE> Possible DNS response codes.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DnsMessage.RESPONSE_CODEgetResponseCode(int value)Retrieve the response code for a byte value.bytegetValue()Retrieve the byte value of the response code.static DnsMessage.RESPONSE_CODEvalueOf(String name)Returns the enum constant of this type with the specified name.static DnsMessage.RESPONSE_CODE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
NO_ERRORpublic static final DnsMessage.RESPONSE_CODE NO_ERROR 
 - 
FORMAT_ERRpublic static final DnsMessage.RESPONSE_CODE FORMAT_ERR 
 - 
SERVER_FAILpublic static final DnsMessage.RESPONSE_CODE SERVER_FAIL 
 - 
NX_DOMAINpublic static final DnsMessage.RESPONSE_CODE NX_DOMAIN 
 - 
NO_IMPpublic static final DnsMessage.RESPONSE_CODE NO_IMP 
 - 
REFUSEDpublic static final DnsMessage.RESPONSE_CODE REFUSED 
 - 
YXDOMAINpublic static final DnsMessage.RESPONSE_CODE YXDOMAIN 
 - 
YXRRSETpublic static final DnsMessage.RESPONSE_CODE YXRRSET 
 - 
NXRRSETpublic static final DnsMessage.RESPONSE_CODE NXRRSET 
 - 
NOT_AUTHpublic static final DnsMessage.RESPONSE_CODE NOT_AUTH 
 - 
NOT_ZONEpublic static final DnsMessage.RESPONSE_CODE NOT_ZONE 
 - 
BADVERS_BADSIGpublic static final DnsMessage.RESPONSE_CODE BADVERS_BADSIG 
 - 
BADKEYpublic static final DnsMessage.RESPONSE_CODE BADKEY 
 - 
BADTIMEpublic static final DnsMessage.RESPONSE_CODE BADTIME 
 - 
BADMODEpublic static final DnsMessage.RESPONSE_CODE BADMODE 
 - 
BADNAMEpublic static final DnsMessage.RESPONSE_CODE BADNAME 
 - 
BADALGpublic static final DnsMessage.RESPONSE_CODE BADALG 
 - 
BADTRUNCpublic static final DnsMessage.RESPONSE_CODE BADTRUNC 
 - 
BADCOOKIEpublic static final DnsMessage.RESPONSE_CODE BADCOOKIE 
 
- 
 - 
Method Detail- 
valuespublic static DnsMessage.RESPONSE_CODE[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DnsMessage.RESPONSE_CODE c : DnsMessage.RESPONSE_CODE.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DnsMessage.RESPONSE_CODE valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
getValuepublic byte getValue() Retrieve the byte value of the response code.- Returns:
- the response code.
 
 - 
getResponseCodepublic static DnsMessage.RESPONSE_CODE getResponseCode(int value) throws IllegalArgumentException Retrieve the response code for a byte value.- Parameters:
- value- The byte value.
- Returns:
- The symbolic response code or null.
- Throws:
- IllegalArgumentException- if the value is not in the range of 0..15.
 
 
- 
 
-