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(String handlerName,
Http2ConnectionHandler connectionHandler)
Creates the codec providing an upgrade to the given handler for HTTP/2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepareUpgradeResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.FullHttpResponse upgradeResponse) |
String |
protocol() |
Collection<String> |
requiredUpgradeHeaders() |
void |
upgradeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.FullHttpResponse upgradeResponse) |
public Http2ServerUpgradeCodec(Http2ConnectionHandler connectionHandler)
connectionHandler - the HTTP/2 connection handler.public Http2ServerUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler)
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline.connectionHandler - the HTTP/2 connection handler.public String protocol()
protocol in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecpublic Collection<String> requiredUpgradeHeaders()
requiredUpgradeHeaders in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecpublic void prepareUpgradeResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.FullHttpResponse upgradeResponse)
prepareUpgradeResponse in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecpublic void upgradeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest upgradeRequest,
io.netty.handler.codec.http.FullHttpResponse upgradeResponse)
upgradeTo in interface io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecCopyright © 2008–2015 The Netty Project. All rights reserved.