public class DefaultServiceClient extends ServiceClient
ServiceClient.ServiceClient.Request| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.http.client.AuthCache |
authCache |
protected org.apache.http.conn.HttpClientConnectionManager |
connectionManager |
protected org.apache.http.client.CredentialsProvider |
credentialsProvider |
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient |
protected static com.aliyun.oss.common.comm.HttpRequestFactory |
httpRequestFactory |
protected org.apache.http.HttpHost |
proxyHttpHost |
protected org.apache.http.client.config.RequestConfig |
requestConfig |
config| 构造器和说明 |
|---|
DefaultServiceClient(ClientConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static ResponseMessage |
buildResponse(ServiceClient.Request request,
org.apache.http.client.methods.CloseableHttpResponse httpResponse) |
protected org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(org.apache.http.conn.HttpClientConnectionManager connectionManager) |
protected org.apache.http.conn.HttpClientConnectionManager |
createHttpClientConnectionManager() |
protected org.apache.http.client.protocol.HttpClientContext |
createHttpContext() |
protected RetryStrategy |
getDefaultRetryStrategy() |
ResponseMessage |
sendRequestCore(ServiceClient.Request request,
ExecutionContext context)
Implements the core logic to send requests to Aliyun OSS services.
|
void |
shutdown() |
getClientConfiguration, sendRequestprotected static com.aliyun.oss.common.comm.HttpRequestFactory httpRequestFactory
protected org.apache.http.impl.client.CloseableHttpClient httpClient
protected org.apache.http.conn.HttpClientConnectionManager connectionManager
protected org.apache.http.client.config.RequestConfig requestConfig
protected org.apache.http.client.CredentialsProvider credentialsProvider
protected org.apache.http.HttpHost proxyHttpHost
protected org.apache.http.client.AuthCache authCache
public DefaultServiceClient(ClientConfiguration config)
public ResponseMessage sendRequestCore(ServiceClient.Request request, ExecutionContext context) throws IOException
ServiceClientsendRequestCore 在类中 ServiceClientIOExceptionprotected static ResponseMessage buildResponse(ServiceClient.Request request, org.apache.http.client.methods.CloseableHttpResponse httpResponse) throws IOException
IOExceptionprotected RetryStrategy getDefaultRetryStrategy()
getDefaultRetryStrategy 在类中 ServiceClientprotected org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.conn.HttpClientConnectionManager connectionManager)
protected org.apache.http.conn.HttpClientConnectionManager createHttpClientConnectionManager()
protected org.apache.http.client.protocol.HttpClientContext createHttpContext()
public void shutdown()
shutdown 在类中 ServiceClientCopyright © 2020. All Rights Reserved.