@UnstableApi public final class DefaultDnsOptEcsRecord extends AbstractDnsOptPseudoRrRecord implements DnsOptEcsRecord
DnsOptEcsRecord implementation.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| 构造器和说明 |
|---|
DefaultDnsOptEcsRecord(int maxPayloadSize,
int srcPrefixLength,
byte[] address)
Creates a new instance.
|
DefaultDnsOptEcsRecord(int maxPayloadSize,
InternetProtocolFamily protocolFamily)
Creates a new instance.
|
DefaultDnsOptEcsRecord(int maxPayloadSize,
int extendedRcode,
int version,
int srcPrefixLength,
byte[] address)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
address()
Returns the bytes of the
InetAddress to use. |
int |
scopePrefixLength()
Returns the leftmost number of significant bits of ADDRESS that the response covers.
|
int |
sourcePrefixLength()
Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.
|
java.lang.String |
toString() |
extendedRcode, flags, versiondnsClass, equals, hashCode, name, timeToLive, typeextendedRcode, flags, versiondnsClass, name, timeToLive, typepublic DefaultDnsOptEcsRecord(int maxPayloadSize,
int extendedRcode,
int version,
int srcPrefixLength,
byte[] address)
maxPayloadSize - the suggested max payload size in bytesextendedRcode - the extended rcodeversion - the versionsrcPrefixLength - the prefix lengthaddress - the bytes of the InetAddress to usepublic DefaultDnsOptEcsRecord(int maxPayloadSize,
int srcPrefixLength,
byte[] address)
maxPayloadSize - the suggested max payload size in bytessrcPrefixLength - the prefix lengthaddress - the bytes of the InetAddress to usepublic DefaultDnsOptEcsRecord(int maxPayloadSize,
InternetProtocolFamily protocolFamily)
maxPayloadSize - the suggested max payload size in bytesprotocolFamily - the InternetProtocolFamily to use. This should be the same as the one used to
send the query.public int sourcePrefixLength()
DnsOptEcsRecordsourcePrefixLength 在接口中 DnsOptEcsRecordpublic int scopePrefixLength()
DnsOptEcsRecordscopePrefixLength 在接口中 DnsOptEcsRecordpublic byte[] address()
DnsOptEcsRecordInetAddress to use.address 在接口中 DnsOptEcsRecordpublic java.lang.String toString()
toString 在类中 AbstractDnsOptPseudoRrRecord