public class HttpClientInitHandler
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| 构造器和说明 |
|---|
HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener) |
HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener,
io.netty.handler.ssl.SslContext sslCtx)
//SslContextBuilder
sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).build();
|
HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener,
io.netty.handler.ssl.SslContext sslCtx,
boolean unPoolMsg)
//SslContextBuilder
sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).build();
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener)
public HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener, io.netty.handler.ssl.SslContext sslCtx)
//SslContextBuilder
sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).build();
listener - sslCtx - public HttpClientInitHandler(JConnectionListener<io.netty.handler.codec.http.HttpResponse> listener, io.netty.handler.ssl.SslContext sslCtx, boolean unPoolMsg)
//SslContextBuilder
sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).build();
listener - sslCtx - Copyright © 2020. All rights reserved.