public class VodGlobalConfig extends Object
| 构造器和说明 |
|---|
VodGlobalConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getSecretKey() |
static String |
getUserId() |
static void |
init(String userId,
String secretKey)
点播业务全局初始化
|
static void |
init(String userId,
String secretKey,
Integer timeOut,
Integer maxClientNum)
点播业务全局初始化
|
static void |
init(String userId,
String secretKey,
Integer timeOut,
Integer maxClientNum,
String hostName,
int port,
String scheme)
系统全局初始化
|
static void |
init(String userId,
String secretKey,
String hostName,
int port,
String scheme)
系统全局初始化
|
public static String getUserId()
public static String getSecretKey()
public static void init(String userId, String secretKey)
userId - 系统分配的USERIDsecretKey - 鉴权密钥public static void init(String userId, String secretKey, Integer timeOut, Integer maxClientNum)
userId - 系统分配的USERIDsecretKey - 鉴权密钥timeOut - HTTP连接超时时间maxClientNum - 连接池最大并发连接数public static void init(String userId, String secretKey, String hostName, int port, String scheme)
userId - userIdsecretKey - secretKeyhostName - 代理地址port - 代理端口scheme - 协议,默认为httpCopyright © 2025. All rights reserved.