| Modifier and Type | Class and Description |
|---|---|
static class |
DnsOverHttps.Builder |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
DNS_MESSAGE |
static int |
MAX_RESPONSE_SIZE |
static int |
TYPE_A |
static int |
TYPE_AAAA |
| Modifier and Type | Method and Description |
|---|---|
Httpd |
client() |
static List<InetAddress> |
decodeAnswers(String hostname,
ByteString byteString) |
static ByteString |
encodeQuery(String host,
int type) |
boolean |
includeIPv6() |
List<InetAddress> |
lookup(String hostname)
返回
hostname的IP地址,按Httpd尝试的顺序排列。如果到地址的连接
失败,Httpd将重试下一个地址的连接,直到建立连接、耗尽IP地址集或超出限制. |
boolean |
post() |
boolean |
resolvePrivateAddresses() |
boolean |
resolvePublicAddresses() |
static long |
size(String string,
int beginIndex,
int endIndex) |
UnoUrl |
url() |
public static final int TYPE_A
public static final int TYPE_AAAA
public static final MediaType DNS_MESSAGE
public static final int MAX_RESPONSE_SIZE
public static ByteString encodeQuery(String host, int type)
public static List<InetAddress> decodeAnswers(String hostname, ByteString byteString) throws Exception
Exceptionpublic static long size(String string, int beginIndex, int endIndex)
public UnoUrl url()
public boolean post()
public boolean includeIPv6()
public Httpd client()
public boolean resolvePrivateAddresses()
public boolean resolvePublicAddresses()
public List<InetAddress> lookup(String hostname) throws UnknownHostException
DnsXhostname的IP地址,按Httpd尝试的顺序排列。如果到地址的连接
失败,Httpd将重试下一个地址的连接,直到建立连接、耗尽IP地址集或超出限制.lookup in interface DnsXhostname - 主机名信息UnknownHostException - 异常信息Copyright © 2020. All rights reserved.