public class DefaultCosHttpClient extends Object implements CosHttpClient
| Modifier and Type | Field and Description |
|---|---|
protected ClientConfig |
clientConfig |
protected org.apache.http.client.HttpClient |
httpClient |
| Constructor and Description |
|---|
DefaultCosHttpClient(ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.HttpResponse |
executeOneRequest(org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase httpRequest) |
<X,Y extends CosServiceRequest> |
exeute(CosHttpRequest<Y> request,
HttpResponseHandler<CosServiceResponse<X>> responseHandler) |
void |
shutdown() |
protected ClientConfig clientConfig
protected org.apache.http.client.HttpClient httpClient
public DefaultCosHttpClient(ClientConfig clientConfig)
public void shutdown()
shutdown in interface CosHttpClientprotected org.apache.http.HttpResponse executeOneRequest(org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase httpRequest)
throws Exception
Exceptionpublic <X,Y extends CosServiceRequest> X exeute(CosHttpRequest<Y> request, HttpResponseHandler<CosServiceResponse<X>> responseHandler) throws CosClientException, CosServiceException
exeute in interface CosHttpClientCosClientExceptionCosServiceExceptionCopyright © 2023. All rights reserved.