public enum DNSResultCode extends java.lang.Enum<DNSResultCode>
| 枚举常量和说明 |
|---|
FormErr
Format Error [RFC1035]
|
NoError
No Error [RFC1035]
|
NotAuth
Server Not Authoritative for zone [RFC2136]]
|
NotImp
Not Implemented [RFC1035]
|
NotZone
Name not contained in zone [RFC2136]
|
NXDomain
Non-Existent Domain [RFC1035]
|
NXRRSet
RR Set that should exist does not [RFC2136]
|
Refused
Query Refused [RFC1035]
|
ServFail
Server Failure [RFC1035]
|
Unknown
Token
|
YXDomain
Name Exists when it should not [RFC2136]
|
YXRRSet
RR Set Exists when it should not [RFC2136]
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
externalName()
Return the string representation of this type
|
int |
indexValue()
Return the numeric value of this type
|
static DNSResultCode |
resultCodeForFlags(int flags) |
static DNSResultCode |
resultCodeForFlags(int flags,
int extendedRCode) |
java.lang.String |
toString() |
static DNSResultCode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DNSResultCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DNSResultCode Unknown
public static final DNSResultCode NoError
public static final DNSResultCode FormErr
public static final DNSResultCode ServFail
public static final DNSResultCode NXDomain
public static final DNSResultCode NotImp
public static final DNSResultCode Refused
public static final DNSResultCode YXDomain
public static final DNSResultCode YXRRSet
public static final DNSResultCode NXRRSet
public static final DNSResultCode NotAuth
public static final DNSResultCode NotZone
public static DNSResultCode[] values()
for (DNSResultCode c : DNSResultCode.values()) System.out.println(c);
public static DNSResultCode valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String externalName()
public int indexValue()
public static DNSResultCode resultCodeForFlags(int flags)
flags - public static DNSResultCode resultCodeForFlags(int flags, int extendedRCode)
public java.lang.String toString()
toString 在类中 java.lang.Enum<DNSResultCode>