public class Http2ServerUpgradeCodec extends Object implements io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodec
| Constructor and Description |
|---|
Http2ServerUpgradeCodec(Http2ConnectionHandler connectionHandler)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
Http2ServerUpgradeCodec(Http2FrameCodec http2Codec,
io.netty.channel.ChannelHandler... handlers)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
Http2ServerUpgradeCodec(Http2MultiplexCodec http2Codec)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
Http2ServerUpgradeCodec(String handlerName,
Http2ConnectionHandler connectionHandler)
Creates the codec providing an upgrade to the given handler for HTTP/2.
|
Http2ServerUpgradeCodec(String handlerName,
Http2MultiplexCodec http2Codec)
Creates the codec providing an upgrade to the given handler for HTTP/2.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
prepareUpgradeResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.HttpHeaders headers) |
Collection<CharSequence> |
requiredUpgradeHeaders() |
void |
upgradeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest) |
public Http2ServerUpgradeCodec(Http2ConnectionHandler connectionHandler)
connectionHandler - the HTTP/2 connection handlerpublic Http2ServerUpgradeCodec(Http2MultiplexCodec http2Codec)
http2Codec - the HTTP/2 multiplexing handler.public Http2ServerUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler)
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline,
or null to auto-generate the nameconnectionHandler - the HTTP/2 connection handlerpublic Http2ServerUpgradeCodec(String handlerName, Http2MultiplexCodec http2Codec)
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline.http2Codec - the HTTP/2 multiplexing handler.public Http2ServerUpgradeCodec(Http2FrameCodec http2Codec, io.netty.channel.ChannelHandler... handlers)
http2Codec - the HTTP/2 frame handler.handlers - the handlers that will handle the Http2Frames.public Collection<CharSequence> requiredUpgradeHeaders()
requiredUpgradeHeaders in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecpublic boolean prepareUpgradeResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.HttpHeaders headers)
prepareUpgradeResponse in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecpublic void upgradeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest)
upgradeTo in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecCopyright © 2008–2025 The Netty Project. All rights reserved.