Enum Class ResolverRecordType
- All Implemented Interfaces:
Serializable,Comparable<ResolverRecordType>,Constable,Enumeration
GVariant tuples. Each record type has different values in
the variant tuples returned.
SRV records are returned as variants with the signature
(qqqs), containing a guint16 with the priority, a guint16 with the
weight, a guint16 with the port, and a string of the hostname.
MX records are returned as variants with the signature
(qs), representing a guint16 with the preference, and a string containing
the mail exchanger hostname.
TXT records are returned as variants with the signature
(as), representing an array of the strings in the text record. Note: Most TXT
records only contain a single string, but
RFC 1035 does allow a
record to contain multiple strings. The RFC which defines the interpretation
of a specific TXT record will likely require concatenation of multiple
strings if they are present, as with
RFC 7208.
SOA records are returned as variants with the signature
(ssuuuuu), representing a string containing the primary name server, a
string containing the administrator, the serial as a guint32, the refresh
interval as a guint32, the retry interval as a guint32, the expire timeout
as a guint32, and the TTL as a guint32.
NS records are returned as variants with the signature
(s), representing a string of the hostname of the name server.
- Since:
- 2.34
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the ResolverRecordType classintgetValue()Get the numeric value of this enumstatic ResolverRecordTypeof(int value) Create a new ResolverRecordType for the provided valuestatic ResolverRecordTypeof(MemorySegment address) Create a new ResolverRecordType for the value in the provided memory address.static ResolverRecordTypeReturns the enum constant of this class with the specified name.static ResolverRecordType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SRV
look up DNS SRV records for a domain -
MX
look up DNS MX records for a domain -
TXT
look up DNS TXT records for a name -
SOA
look up DNS SOA records for a zone -
NS
look up DNS NS records for a domain
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Create a new ResolverRecordType for the provided value- Parameters:
value- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new ResolverRecordType for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
Get the GType of the ResolverRecordType class- Returns:
- the GType
-