Class OkHttpClientFactory
- java.lang.Object
-
- com.foxinmy.weixin4j.http.factory.HttpClientFactory
-
- com.foxinmy.weixin4j.http.support.okhttp.OkHttpClientFactory
-
public class OkHttpClientFactory extends HttpClientFactory
使用OkHttp- 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 OkHttpClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClient
newInstance(HttpParams params)
获取HttpClient实例-
Methods inherited from class com.foxinmy.weixin4j.http.factory.HttpClientFactory
allowSSLContext, getDefaultFactory, getDefaultParams, getInstance, getInstance, setDefaultFactory, setDefaultParams
-
-
-
-
Method Detail
-
newInstance
public HttpClient newInstance(HttpParams params)
Description copied from class:HttpClientFactory
获取HttpClient实例- Specified by:
newInstance
in classHttpClientFactory
- Parameters:
params
- http参数 可为空- Returns:
-
-