public class Http2ClientInitializer extends ChannelInitializer<SocketChannel>
ChannelHandler.Sharable
Constructor and Description |
---|
Http2ClientInitializer(SslContext sslCtx,
int maxContentLength) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureEndOfPipeline(ChannelPipeline pipeline) |
void |
initChannel(SocketChannel ch)
This method will be called once the
Channel was registered. |
HttpResponseHandler |
responseHandler() |
Http2SettingsHandler |
settingsHandler() |
channelRegistered, exceptionCaught, handlerAdded
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerRemoved
public Http2ClientInitializer(SslContext sslCtx, int maxContentLength)
public void initChannel(SocketChannel ch) throws Exception
ChannelInitializer
Channel
was registered. After the method returns this instance
will be removed from the ChannelPipeline
of the Channel
.initChannel
in class ChannelInitializer<SocketChannel>
ch
- the Channel
which was registered.Exception
- is thrown if an error occurs. In that case it will be handled by
ChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable)
which will by default close
the Channel
.public HttpResponseHandler responseHandler()
public Http2SettingsHandler settingsHandler()
protected void configureEndOfPipeline(ChannelPipeline pipeline)
Copyright © 2008–2019 The Netty Project. All rights reserved.