Class HttpComponent4_2Factory
- java.lang.Object
-
- com.foxinmy.weixin4j.http.factory.HttpClientFactory
-
- com.foxinmy.weixin4j.http.support.apache4.HttpComponent4_2Factory
-
public class HttpComponent4_2Factory extends HttpClientFactory
使用Apache的HttpClient>=4.3- 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_2Factory()
HttpComponent4_2Factory(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClient
newInstance(HttpParams params)
获取HttpClient实例HttpComponent4_2Factory
retryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
HttpComponent4_2Factory
setConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
HttpComponent4_2Factory
setDefaultConnectionConfig(org.apache.http.config.ConnectionConfig connectionConfig)
HttpComponent4_2Factory
setDefaultSocketConfig(org.apache.http.config.SocketConfig socketConfig)
HttpComponent4_2Factory
setHttpProcessor(org.apache.http.protocol.HttpProcessor httpprocessor)
-
Methods inherited from class com.foxinmy.weixin4j.http.factory.HttpClientFactory
allowSSLContext, getDefaultFactory, getDefaultParams, getInstance, getInstance, setDefaultFactory, setDefaultParams
-
-
-
-
Method Detail
-
setDefaultConnectionConfig
public HttpComponent4_2Factory setDefaultConnectionConfig(org.apache.http.config.ConnectionConfig connectionConfig)
-
setDefaultSocketConfig
public HttpComponent4_2Factory setDefaultSocketConfig(org.apache.http.config.SocketConfig socketConfig)
-
setConnectionManager
public HttpComponent4_2Factory setConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
-
setHttpProcessor
public HttpComponent4_2Factory setHttpProcessor(org.apache.http.protocol.HttpProcessor httpprocessor)
-
retryHandler
public HttpComponent4_2Factory retryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
-
newInstance
public HttpClient newInstance(HttpParams params)
Description copied from class:HttpClientFactory
获取HttpClient实例- Specified by:
newInstance
in classHttpClientFactory
- Parameters:
params
- http参数 可为空- Returns:
-
-