public class DefaultAcsClient extends Object implements IAcsClient
| 构造器和说明 |
|---|
DefaultAcsClient()
已过时。
|
DefaultAcsClient(IClientProfile profile) |
DefaultAcsClient(IClientProfile profile,
AlibabaCloudCredentials credentials) |
DefaultAcsClient(IClientProfile profile,
AlibabaCloudCredentialsProvider credentialsProvider) |
DefaultAcsClient(String regionId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendUserAgent(String key,
String value) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts,
IClientProfile profile) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
boolean autoRetry,
int maxRetryNumber,
String regionId,
Credential credential,
Signer signer,
FormatType format)
已过时。
|
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
IClientProfile profile) |
<T extends AcsResponse> |
doAction(AcsRequest<T> request,
String regionId,
Credential credential) |
void |
doActionWithIgnoreSSL(AcsRequest request,
boolean isIgnore)
Compatible with previous versions of SSL Settings
|
void |
doActionWithProxy(ProtocolType protocolType,
String httpsProxy,
String httpProxy)
Compatible with previous versions of proxy Settings
|
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
boolean autoRetry,
int maxRetryCounts) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
IClientProfile profile) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
String regionId) |
<T extends AcsResponse> |
getAcsResponse(AcsRequest<T> request,
String regionId,
Credential credential) |
CommonResponse |
getCommonResponse(CommonRequest request) |
ProductDomain |
getDomain(AcsRequest request,
String regionId) |
IHttpClient |
getHttpClient() |
int |
getMaxRetryNumber()
已过时。
|
DefaultProfile |
getProfile() |
UserAgentConfig |
getUserAgentConfig() |
void |
ignoreSSLCertificate() |
boolean |
isAutoRetry()
已过时。
|
protected <T extends AcsResponse> |
readResponse(Class<T> clasz,
HttpResponse httpResponse,
FormatType format)
2019-01-03 change access control from private to protected, then subClass can
override it and rewrite httpResponse processing
|
void |
restoreSSLCertificate() |
void |
setAutoRetry(boolean autoRetry)
已过时。
|
void |
setEndpointResolver(EndpointResolver resolver) |
void |
setHttpClient(IHttpClient httpClient) |
void |
setMaxRetryNumber(int maxRetryNumber)
已过时。
|
void |
shutdown() |
@Deprecated public DefaultAcsClient() throws ClientException
ClientExceptionpublic DefaultAcsClient(String regionId) throws ClientException
ClientExceptionpublic DefaultAcsClient(IClientProfile profile)
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials)
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider)
public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request) throws ClientException, ServerException
doAction 在接口中 IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts) throws ClientException, ServerException
doAction 在接口中 IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, IClientProfile profile) throws ClientException, ServerException
doAction 在接口中 IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, String regionId, Credential credential) throws ClientException, ServerException
doAction 在接口中 IAcsClientClientExceptionServerExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request) throws ServerException, ClientException
getAcsResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts) throws ServerException, ClientException
getAcsResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, IClientProfile profile) throws ServerException, ClientException
getAcsResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId, Credential credential) throws ServerException, ClientException
getAcsResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request, String regionId) throws ServerException, ClientException
getAcsResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic CommonResponse getCommonResponse(CommonRequest request) throws ServerException, ClientException
getCommonResponse 在接口中 IAcsClientServerExceptionClientExceptionpublic <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryCounts, IClientProfile profile) throws ClientException, ServerException
doAction 在接口中 IAcsClientClientExceptionServerException@Deprecated public <T extends AcsResponse> HttpResponse doAction(AcsRequest<T> request, boolean autoRetry, int maxRetryNumber, String regionId, Credential credential, Signer signer, FormatType format) throws ClientException, ServerException
public ProductDomain getDomain(AcsRequest request, String regionId) throws ClientException
ClientExceptionprotected <T extends AcsResponse> T readResponse(Class<T> clasz, HttpResponse httpResponse, FormatType format) throws ClientException
ClientExceptionpublic void doActionWithProxy(ProtocolType protocolType, String httpsProxy, String httpProxy)
public void doActionWithIgnoreSSL(AcsRequest request, boolean isIgnore)
@Deprecated public boolean isAutoRetry()
@Deprecated public void setAutoRetry(boolean autoRetry)
@Deprecated public int getMaxRetryNumber()
@Deprecated public void setMaxRetryNumber(int maxRetryNumber)
public void restoreSSLCertificate()
restoreSSLCertificate 在接口中 IAcsClientpublic void ignoreSSLCertificate()
ignoreSSLCertificate 在接口中 IAcsClientpublic void setEndpointResolver(EndpointResolver resolver)
public void shutdown()
shutdown 在接口中 IAcsClientpublic DefaultProfile getProfile()
public UserAgentConfig getUserAgentConfig()
public IHttpClient getHttpClient()
public void setHttpClient(IHttpClient httpClient)
Copyright © 2019. All rights reserved.