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