Class HttpComponent4_1Factory
- java.lang.Object
-
- com.foxinmy.weixin4j.http.factory.HttpClientFactory
-
- com.foxinmy.weixin4j.http.support.apache4.HttpComponent4_1Factory
-
public class HttpComponent4_1Factory extends HttpClientFactory
使用Apache的HttpClient<=4.2- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.foxinmy.weixin4j.http.factory.HttpClientFactory
HttpClientFactory.AllowHostnameVerifier, HttpClientFactory.AllowX509TrustManager
-
-
Constructor Summary
Constructors Constructor Description HttpComponent4_1Factory()
默认httpclientHttpComponent4_1Factory(org.apache.http.client.HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClient
newInstance(HttpParams params)
获取HttpClient实例void
setParameter(String name, Object value)
设置Http参数-
Methods inherited from class com.foxinmy.weixin4j.http.factory.HttpClientFactory
allowSSLContext, getDefaultFactory, getDefaultParams, getInstance, getInstance, setDefaultFactory, setDefaultParams
-
-
-
-
Constructor Detail
-
HttpComponent4_1Factory
public HttpComponent4_1Factory()
默认httpclient- See Also:
- HTTPCLIENT-1193
-
HttpComponent4_1Factory
public HttpComponent4_1Factory(org.apache.http.client.HttpClient httpClient)
-
-
Method Detail
-
setParameter
public void setParameter(String name, Object value)
设置Http参数- Parameters:
name
- 参数名value
- 参数值- See Also:
HttpParams
-
newInstance
public HttpClient newInstance(HttpParams params)
Description copied from class:HttpClientFactory
获取HttpClient实例- Specified by:
newInstance
in classHttpClientFactory
- Parameters:
params
- http参数 可为空- Returns:
-
-