public abstract class AbstractHttpClient extends Object
| 构造器和说明 |
|---|
AbstractHttpClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract String |
doPost(String url,
Map<String,String> params,
Map<String,FileItem> fileParams,
String charset,
Map<String,String> resHeaders)
执行带文件上传的HTTP POST请求。
|
abstract String |
doPost(String url,
Map<String,String> params,
String charset,
Map<String,String> resHeaders)
执行HTTP POST请求。
|
int |
getConnectTimeout()
Getter method for property connectTimeout.
|
Map<String,String> |
getCustomHeaders()
Getter method for property customHeaders.
|
long |
getKeepAliveDuration()
Getter method for property keepAliveDuration.
|
int |
getMaxIdleConnections()
Getter method for property maxIdleConnections.
|
String |
getProxyHost()
Getter method for property proxyHost.
|
int |
getProxyPort()
Getter method for property proxyPort.
|
int |
getReadTimeout()
Getter method for property readTimeout.
|
void |
setConnectTimeout(int connectTimeout)
Setter method for property connectTimeout.
|
void |
setCustomHeaders(Map<String,String> customHeaders)
Setter method for property customHeaders.
|
void |
setKeepAliveDuration(long keepAliveDuration)
Setter method for property keepAliveDuration.
|
void |
setMaxIdleConnections(int maxIdleConnections)
Setter method for property maxIdleConnections.
|
void |
setProxyHost(String proxyHost)
Setter method for property proxyHost.
|
void |
setProxyPort(int proxyPort)
Setter method for property proxyPort.
|
void |
setReadTimeout(int readTimeout)
Setter method for property readTimeout.
|
public abstract String doPost(String url, Map<String,String> params, String charset, Map<String,String> resHeaders) throws IOException
IOExceptionpublic abstract String doPost(String url, Map<String,String> params, Map<String,FileItem> fileParams, String charset, Map<String,String> resHeaders) throws IOException
IOExceptionpublic String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - value to be assigned to property proxyHostpublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - value to be assigned to property proxyPortpublic Map<String,String> getCustomHeaders()
public void setCustomHeaders(Map<String,String> customHeaders)
customHeaders - value to be assigned to property customHeaderspublic int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout - value to be assigned to property connectTimeoutpublic int getReadTimeout()
public void setReadTimeout(int readTimeout)
readTimeout - value to be assigned to property readTimeoutpublic int getMaxIdleConnections()
public void setMaxIdleConnections(int maxIdleConnections)
maxIdleConnections - value to be assigned to property maxIdleConnectionspublic long getKeepAliveDuration()
public void setKeepAliveDuration(long keepAliveDuration)
keepAliveDuration - value to be assigned to property keepAliveDurationCopyright © 2025. All rights reserved.