public class ZHttpCommUtil
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CHARTSET |
构造器和说明 |
---|
ZHttpCommUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<InterfaceEntity> |
getDataInterFace(boolean isRefresh) |
static org.apache.http.Header[] |
getHeaders(java.util.Map<java.lang.String,java.lang.String> headerMap)
构造请求头部
|
static org.apache.http.conn.ConnectionKeepAliveStrategy |
getKeepAliveStrategy()
获取链接的策略
|
static org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getPoolingManager()
获取请求连接池管理
|
static org.apache.http.client.config.RequestConfig |
getRequestConfig()
获取请求的配置信息
|
static java.util.List<org.apache.http.NameValuePair> |
setHttpParams(java.util.Map<java.lang.String,java.lang.Object> paramMap)
设置参数,GET和POST可以共用
|
public static final java.lang.String CHARTSET
public static org.apache.http.impl.conn.PoolingHttpClientConnectionManager getPoolingManager()
public static org.apache.http.conn.ConnectionKeepAliveStrategy getKeepAliveStrategy()
public static java.util.List<org.apache.http.NameValuePair> setHttpParams(java.util.Map<java.lang.String,java.lang.Object> paramMap)
paramMap
- Map类型参数public static org.apache.http.client.config.RequestConfig getRequestConfig()
public static org.apache.http.Header[] getHeaders(java.util.Map<java.lang.String,java.lang.String> headerMap)
headerMap
- 头部参数public static java.util.List<InterfaceEntity> getDataInterFace(boolean isRefresh)