public class HttpClientChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Constructor and Description |
|---|
HttpClientChannelInitializer(SenderConfiguration senderConfiguration,
HttpRoute httpRoute,
ConnectionManager connectionManager,
ConnectionAvailabilityFuture connectionAvailabilityFuture) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureHttpPipeline(io.netty.channel.ChannelPipeline pipeline,
TargetHandler targetHandler)
Creates pipeline for http requests.
|
io.netty.handler.codec.http2.Http2Connection |
getConnection()
Gets the associated
Http2Connection. |
Http2ConnectionManager |
getHttp2ConnectionManager() |
KeepAliveConfig |
getKeepAliveConfig() |
SSLConfig |
getSslConfig() |
TargetHandler |
getTargetHandler() |
protected void |
initChannel(io.netty.channel.socket.SocketChannel socketChannel) |
void |
setHttp2ClientChannel(Http2ClientChannel http2ClientChannel) |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic HttpClientChannelInitializer(SenderConfiguration senderConfiguration, HttpRoute httpRoute, ConnectionManager connectionManager, ConnectionAvailabilityFuture connectionAvailabilityFuture)
protected void initChannel(io.netty.channel.socket.SocketChannel socketChannel)
throws Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Exceptionpublic TargetHandler getTargetHandler()
public Http2ConnectionManager getHttp2ConnectionManager()
public SSLConfig getSslConfig()
public void configureHttpPipeline(io.netty.channel.ChannelPipeline pipeline,
TargetHandler targetHandler)
pipeline - the client channel pipelinetargetHandler - the target handlerpublic io.netty.handler.codec.http2.Http2Connection getConnection()
Http2Connection.Http2Connectionpublic KeepAliveConfig getKeepAliveConfig()
public void setHttp2ClientChannel(Http2ClientChannel http2ClientChannel)
Copyright © 2022 WSO2. All rights reserved.