public abstract class AbstractCosHttpClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ClientConfig |
config |
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
connectionManager |
protected org.apache.http.client.HttpClient |
httpClient |
protected IdleConnectionMonitorThread |
idleConnectionMonitor |
protected org.apache.http.client.config.RequestConfig |
requestConfig |
| 构造器和说明 |
|---|
AbstractCosHttpClient(ClientConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract InputStream |
getFileInputStream(HttpRequest httpRequest) |
protected abstract String |
sendGetRequest(HttpRequest httpRequest) |
String |
sendHttpRequest(HttpRequest httpRequest) |
protected abstract String |
sendPostRequest(HttpRequest httpRequest) |
void |
shutdown() |
protected ClientConfig config
protected org.apache.http.client.HttpClient httpClient
protected org.apache.http.impl.conn.PoolingHttpClientConnectionManager connectionManager
protected IdleConnectionMonitorThread idleConnectionMonitor
protected org.apache.http.client.config.RequestConfig requestConfig
public AbstractCosHttpClient(ClientConfig config)
protected abstract String sendPostRequest(HttpRequest httpRequest) throws AbstractCosException
protected abstract String sendGetRequest(HttpRequest httpRequest) throws AbstractCosException
public String sendHttpRequest(HttpRequest httpRequest) throws AbstractCosException
public abstract InputStream getFileInputStream(HttpRequest httpRequest) throws AbstractCosException
public void shutdown()
Copyright © 2017. All rights reserved.