public class DefaultAliyunClient extends Object implements AliyunClient
| Constructor and Description |
|---|
DefaultAliyunClient(String serverUrl,
String accessKeyId,
String accessKeySecret) |
DefaultAliyunClient(String serverUrl,
String accessKeyId,
String accessKeySecret,
String format) |
DefaultAliyunClient(String serverUrl,
String accessKeyId,
String accessKeySecret,
String format,
int connectTimeout,
int readTimeout) |
DefaultAliyunClient(String serverUrl,
String accessKeyId,
String accessKeySecret,
String format,
int connectTimeout,
int readTimeout,
ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
<T extends AliyunResponse> |
_execute(AliyunRequest<T> request,
AliyunParser<T> parser) |
<T extends AliyunResponse> |
doPost(AliyunRequest<T> request) |
<T extends AliyunResponse> |
execute(AliyunRequest<T> request)
执行阿里云API请求。
|
<T extends AliyunResponse> |
executeAsync(AliyunRequest<T> request,
AliyunAsyncHandler<T> asyncHandler)
异步执行阿里云API请求。
|
ExecutorService |
getExecutorService() |
void |
setExecutorService(ExecutorService executorService) |
void |
setNeedCheckRequest(boolean needCheckRequest) |
void |
setNeedEnableLogger(boolean needEnableLogger) |
void |
setNeedEnableParser(boolean needEnableParser) |
void |
shutdown() |
public DefaultAliyunClient(String serverUrl, String accessKeyId, String accessKeySecret)
public DefaultAliyunClient(String serverUrl, String accessKeyId, String accessKeySecret, String format)
public DefaultAliyunClient(String serverUrl, String accessKeyId, String accessKeySecret, String format, int connectTimeout, int readTimeout)
public DefaultAliyunClient(String serverUrl, String accessKeyId, String accessKeySecret, String format, int connectTimeout, int readTimeout, ExecutorService executorService)
public <T extends AliyunResponse> T execute(AliyunRequest<T> request) throws ApiException
AliyunClientexecute in interface AliyunClientrequest - 具体的请求ApiExceptionpublic <T extends AliyunResponse> Future<T> executeAsync(AliyunRequest<T> request, AliyunAsyncHandler<T> asyncHandler) throws ApiException
AliyunClientexecuteAsync in interface AliyunClientrequest - 具体的请求ApiExceptionpublic <T extends AliyunResponse> T _execute(AliyunRequest<T> request, AliyunParser<T> parser) throws ApiException
ApiExceptionpublic <T extends AliyunResponse> Map<String,Object> doPost(AliyunRequest<T> request) throws ApiException
ApiExceptionpublic void setNeedCheckRequest(boolean needCheckRequest)
public void setNeedEnableParser(boolean needEnableParser)
public void setNeedEnableLogger(boolean needEnableLogger)
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
public void shutdown()
Copyright © 2021. All rights reserved.