public class CtyunClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CtyunClient.CtyunClientConfig |
| 构造器和说明 |
|---|
CtyunClient(CtyunClient.CtyunClientConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CtyunClient.CtyunClientConfig |
clientConfigForProd()
生产环境配置
|
static CtyunClient.CtyunClientConfig |
clientConfigForTest()
测试环境配置
|
static CtyunClient |
clientForProd()
生产环境客户端
|
static CtyunClient |
clientForTest()
测试环境客户端
|
static CtyunClient |
defaultClient()
默认客户端(生产环境)
|
void |
registerEndpoint(Endpoint endpoint)
注册端点
|
CtyunResponse |
requestToEndpoint(CtyunRequest request)
请求端点
|
public CtyunClient(CtyunClient.CtyunClientConfig config)
public static CtyunClient.CtyunClientConfig clientConfigForProd() throws CtyunRequestException
CtyunRequestExceptionpublic static CtyunClient.CtyunClientConfig clientConfigForTest() throws CtyunRequestException
CtyunRequestException - 异常public static CtyunClient clientForProd() throws CtyunRequestException
CtyunRequestExceptionpublic static CtyunClient clientForTest() throws CtyunRequestException
CtyunRequestExceptionpublic static CtyunClient defaultClient() throws CtyunRequestException
CtyunRequestExceptionpublic void registerEndpoint(Endpoint endpoint)
endpoint - 注册的端点public CtyunResponse requestToEndpoint(CtyunRequest request) throws CtyunRequestException
request - 请求CtyunRequestException - 异常Copyright © 2025. All rights reserved.