Package javax.jmdns.impl.constants
Enum DNSResultCode
- All Implemented Interfaces:
Serializable
,Comparable<DNSResultCode>
DNS result code.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFormat Error [RFC1035]No Error [RFC1035]Server Not Authoritative for zone [RFC2136]]Not Implemented [RFC1035]Name not contained in zone [RFC2136]Non-Existent Domain [RFC1035]RR Set that should exist does not [RFC2136]Query Refused [RFC1035]Server Failure [RFC1035]TokenName Exists when it should not [RFC2136]RR Set Exists when it should not [RFC2136] -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final int
(package private) static final int
DNS Extended Result Code types are encoded on the first 8 bits(package private) static final int
DNS Result Code types are encoded on the last 4 bits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the string representation of this typeint
Return the numeric value of this typestatic DNSResultCode
resultCodeForFlags
(int flags) static DNSResultCode
resultCodeForFlags
(int flags, int extendedRCode) toString()
static DNSResultCode
Returns the enum constant of this type with the specified name.static DNSResultCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Unknown
Token -
NoError
No Error [RFC1035] -
FormErr
Format Error [RFC1035] -
ServFail
Server Failure [RFC1035] -
NXDomain
Non-Existent Domain [RFC1035] -
NotImp
Not Implemented [RFC1035] -
Refused
Query Refused [RFC1035] -
YXDomain
Name Exists when it should not [RFC2136] -
YXRRSet
RR Set Exists when it should not [RFC2136] -
NXRRSet
RR Set that should exist does not [RFC2136] -
NotAuth
Server Not Authoritative for zone [RFC2136]] -
NotZone
Name not contained in zone [RFC2136]
-
-
Field Details
-
RCode_MASK
static final int RCode_MASKDNS Result Code types are encoded on the last 4 bits- See Also:
-
ExtendedRCode_MASK
static final int ExtendedRCode_MASKDNS Extended Result Code types are encoded on the first 8 bits- See Also:
-
_externalName
-
_index
private final int _index
-
-
Constructor Details
-
DNSResultCode
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
externalName
Return the string representation of this type- Returns:
- String
-
indexValue
public int indexValue()Return the numeric value of this type- Returns:
- String
-
resultCodeForFlags
- Parameters:
flags
-- Returns:
- label
-
resultCodeForFlags
-
toString
- Overrides:
toString
in classEnum<DNSResultCode>
-