LocalAccessPointConfiguration
Local Access Point 配置。
Java
public class LocalAccessPointConfiguration {
public static class LogUploadServerInfo {
public String serverDomain = null;
public String serverPath = null;
public int serverPort = 0;
public boolean serverHttps = true;
public LogUploadServerInfo() {
serverDomain = null;
serverPath = null;
serverPort = 0;
serverHttps = true;
}
public LogUploadServerInfo(String domain, String path, int port, boolean https) {
serverDomain = domain;
serverPath = path;
serverPort = port;
serverHttps = https;
}
@CalledByNative("LogUploadServerInfo")
public String getServerDomain() {
return serverDomain;
}
@CalledByNative("LogUploadServerInfo")
public String getServerPath() {
return serverPath;
}
@CalledByNative("LogUploadServerInfo")
public int getServerPort() {
return serverPort;
}
@CalledByNative("LogUploadServerInfo")
public boolean getServerHttps() {
return serverHttps;
}
};
public static class AdvancedConfigInfo {
public LogUploadServerInfo logUploadServer = null;
public AdvancedConfigInfo() {
logUploadServer = new LogUploadServerInfo();
}
@CalledByNative("AdvancedConfigInfo")
public LogUploadServerInfo getLogUploadServerInfo() {
return logUploadServer;
}
};
public ArrayList<String> ipList = null;
public ArrayList<String> domainList = null;
public String verifyDomainName = null;
public int mode = Constants.LOCAL_RPOXY_CONNECTIVITY_FIRST;
public AdvancedConfigInfo advancedConfig = null;
}
ipList
Local Access Point 的对内 IP 地址列表。ipList 和 domainList 必须至少填一个。
domainList
Local Access Point 的域名列表。SDK 会根据你填入的域名解析出 Local Access Point 的 IP 地址。域名解析的超时时间为 10 秒。ipList 和 domainList 必须至少填一个。如果你同时指定 IP 地址和域名,SDK 会将根据域名解析出来的 IP 地址和你指定的 IP 地址合并、去重,然后随机连接一个 IP 来实现负载均衡。
verifyDomainName
内网证书验证域名。如果传值为空,则用 SDK 默认的证书验证域名
secure-edge.local
。mode
连接模式:
- LOCAL_RPOXY_CONNECTIVITY_FIRST (0):SDK 优先尝试连接指定的声网私有媒体服务器;如果无法连接到指定的声网私有媒体服务器,则连接声网 SD-RTN™。
- LOCAL_RPOXY_LOCAL_ONLY (1):SDK 只尝试连接指定的声网私有媒体服务器。
advancedConfig
Local Access Point 的高级选项。详见 AdvancedConfigInfo。