@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, version
dnsClass, equals, hashCode, name, timeToLive, type
extendedRcode, flags, version
dnsClass, name, timeToLive, type
public 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()
DnsOptEcsRecord
sourcePrefixLength
在接口中 DnsOptEcsRecord
public int scopePrefixLength()
DnsOptEcsRecord
scopePrefixLength
在接口中 DnsOptEcsRecord
public byte[] address()
DnsOptEcsRecord
InetAddress
to use.address
在接口中 DnsOptEcsRecord
public java.lang.String toString()
toString
在类中 AbstractDnsOptPseudoRrRecord