软件包 | 描述 |
---|---|
io.netty.resolver |
将表示端点名称的任意字符串解析为地址。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Method and Description |
---|---|
static ResolvedAddressTypes |
ResolvedAddressTypes.valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static ResolvedAddressTypes[] |
ResolvedAddressTypes.values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
HostsFileEntriesResolver.address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
根据某些地址类型,根据hosts文件中的条目解析主机名的地址。
|
java.net.InetAddress |
DefaultHostsFileEntriesResolver.address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes) |
Modifier and Type | Method and Description |
---|---|
static ResolvedAddressTypes |
DnsNameResolverBuilder.computeResolvedAddressTypes(InternetProtocolFamily... internetProtocolFamilies)
|
ResolvedAddressTypes |
DnsNameResolver.resolvedAddressTypes()
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(ResolvedAddressTypes resolvedAddressTypes)
设置解析地址的协议族列表。
|
Constructor and Description |
---|
DnsNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsCache resolveCache, DnsCache authoritativeDnsServerCache, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, java.lang.String[] searchDomains, int ndots, boolean decodeIdn)
创建一个与指定的DNS服务器列表通信的新的基于DNS的名称解析器。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.