public abstract class AihcClientCore extends AbstractBceClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
APIPREFIX
AIHC API 路径前缀
|
protected static String |
VERSION
AIHC API 版本
|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
AihcClientCore()
构造函数
|
AihcClientCore(BceClientConfiguration clientConfiguration)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
String |
computeServiceId()
重写computeServiceId方法,避免包名检查错误
|
protected InternalRequest |
createAihcRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String action)
创建标准AIHC请求
|
protected InternalRequest |
createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String prefix,
String... pathVariables)
创建并初始化请求对象
|
protected void |
fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
填充请求体内容
仅支持POST或GET方法
|
computeBktVirEndpoint, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownprotected static final String APIPREFIX
protected static final String VERSION
public AihcClientCore()
public AihcClientCore(BceClientConfiguration clientConfiguration)
clientConfiguration - BCE客户端配置public String computeServiceId()
computeServiceId in class AbstractBceClientprotected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
internalRequest - 内部请求对象bceRequest - 原始BCE请求protected InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String prefix, String... pathVariables)
bceRequest - 原始BCE请求httpMethod - HTTP方法prefix - URI前缀pathVariables - 路径变量protected InternalRequest createAihcRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String action)
bceRequest - 原始BCE请求httpMethod - HTTP方法action - API动作Copyright © 2025. All rights reserved.