@UnstableApi
public interface HostsFileEntriesResolver
Modifier and Type | Field and Description |
---|---|
static HostsFileEntriesResolver |
DEFAULT
默认实例:a DefaultHostsFileEntriesResolver 。
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
根据某些地址类型,根据hosts文件中的条目解析主机名的地址。
|
static final HostsFileEntriesResolver DEFAULT
DefaultHostsFileEntriesResolver
。
java.net.InetAddress address(java.lang.String inetHost, ResolvedAddressTypes resolvedAddressTypes)
inetHost
- 要解析的主机名
resolvedAddressTypes
- 要解析的地址类型
Copyright © 2008–2018 The Netty Project. All rights reserved.