Enum DNSRecordClass
- All Implemented Interfaces:
Serializable, Comparable<DNSRecordClass>
DNS Record Class
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNot a DNS class, but a DNS query class, meaning "all classes"CHAOSCSNETHesiodstatic final InternetUsed in DNS UPDATE [RFC 2136] -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final intstatic final intMulticast DNS uses the bottom 15 bits to identify the record class...
Except for pseudo records like OPT.static final intFor answers the top bit indicates that all other cached records are now invalid.
For questions it indicates that we should send a unicast response.private static org.slf4j.Loggerstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DNSRecordClassclassForIndex(int index) static DNSRecordClassclassForName(String name) Return the string representation of this typeintReturn the numeric value of this typebooleanisUnique(int index) Checks if the class is uniquetoString()static DNSRecordClassReturns the enum constant of this type with the specified name.static DNSRecordClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLASS_UNKNOWN
-
CLASS_IN
static final Internet -
CLASS_CS
CSNET -
CLASS_CH
CHAOS -
CLASS_HS
Hesiod -
CLASS_NONE
Used in DNS UPDATE [RFC 2136] -
CLASS_ANY
Not a DNS class, but a DNS query class, meaning "all classes"
-
-
Field Details
-
logger
private static org.slf4j.Logger logger -
CLASS_MASK
public static final int CLASS_MASKMulticast DNS uses the bottom 15 bits to identify the record class...
Except for pseudo records like OPT.- See Also:
-
CLASS_UNIQUE
public static final int CLASS_UNIQUEFor answers the top bit indicates that all other cached records are now invalid.
For questions it indicates that we should send a unicast response.- See Also:
-
UNIQUE
public static final boolean UNIQUE- See Also:
-
NOT_UNIQUE
public static final boolean NOT_UNIQUE- See Also:
-
_externalName
-
_index
private final int _index
-
-
Constructor Details
-
DNSRecordClass
-
-
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
-
indexValue
public int indexValue()Return the numeric value of this type- Returns:
- String
-
isUnique
public boolean isUnique(int index) Checks if the class is unique- Parameters:
index-- Returns:
trueis the class is unique,falseotherwise.
-
classForName
- Parameters:
name-- Returns:
- class for name
-
classForIndex
- Parameters:
index-- Returns:
- class for name
-
toString
- Overrides:
toStringin classEnum<DNSRecordClass>
-