Package io.rong.imlib
Class HttpDnsManager
-
- All Implemented Interfaces:
public class HttpDnsManager
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
KEY_DNS_TYPE
public final static String
KEY_RESOLVE_IP
public final static String
KEY_CLIENT_IP
public final static String
KEY_DNS_SERVER_IP
public final static String
KEY_FROM_CACHE
public final static String
KEY_DNS_DELTA_TIME
public final static int
DNS_TYPE_DEFAULT
public final static int
DNS_TYPE_SYSTEM
public final static int
DNS_TYPE_BD
-
Method Summary
Modifier and Type Method Description static HttpDnsManager
getInstance()
void
initHttpDns(Context context, NativeObject nativeObject)
boolean
shouldEnableHttpDns(List<String> serverAddressList)
根据指定的导航服务器地址判断是否启用 HttpDns HttpDnsOption
getHttpDnsIpsOption(Context context, String host)
-
-
Method Detail
-
getInstance
static HttpDnsManager getInstance()
-
initHttpDns
void initHttpDns(Context context, NativeObject nativeObject)
-
shouldEnableHttpDns
boolean shouldEnableHttpDns(List<String> serverAddressList)
根据指定的导航服务器地址判断是否启用 HttpDns
- Parameters:
serverAddressList
- 连接使用的导航服务器地址
-
getHttpDnsIpsOption
HttpDnsOption getHttpDnsIpsOption(Context context, String host)
-
-
-
-