@UnstableApi public enum DnsSection extends java.lang.Enum<DnsSection>
DnsMessage.| Enum Constant and Description |
|---|
ADDITIONAL
The section that contains the additional
DnsRecords. |
ANSWER
The section that contains the answer
DnsRecords. |
AUTHORITY
The section that contains the authority
DnsRecords. |
QUESTION
The section that contains
DnsQuestions. |
| Modifier and Type | Method and Description |
|---|---|
static DnsSection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DnsSection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DnsSection QUESTION
DnsQuestions.public static final DnsSection ANSWER
DnsRecords.public static final DnsSection AUTHORITY
DnsRecords.public static final DnsSection ADDITIONAL
DnsRecords.public static DnsSection[] values()
for (DnsSection c : DnsSection.values()) System.out.println(c);
public static DnsSection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null