@UnstableApi public final class DefaultHostsFileEntriesResolver extends java.lang.Object implements HostsFileEntriesResolver
HostsFileEntriesResolver
仅解析主机文件条目一次。
DEFAULT
Constructor and Description |
---|
DefaultHostsFileEntriesResolver() |
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
根据某些地址类型,根据hosts文件中的条目解析主机名的地址。
|
public java.net.InetAddress address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
HostsFileEntriesResolver
复制的描述
address
在界面
HostsFileEntriesResolver
inetHost
- 要解析的主机名
resolvedAddressTypes
- 要解析的地址类型
Copyright © 2008–2018 The Netty Project. All rights reserved.