public class HttpServerUpgradeHandler extends HttpObjectAggregator
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpServerUpgradeHandler.SourceCodec
The source codec that is used in the pipeline initially.
|
static interface |
HttpServerUpgradeHandler.UpgradeCodec
A codec that the source can be upgraded to.
|
static class |
HttpServerUpgradeHandler.UpgradeEvent
User event that is fired to notify about the completion of an HTTP upgrade
to another protocol.
|
| Constructor and Description |
|---|
HttpServerUpgradeHandler(HttpServerUpgradeHandler.SourceCodec sourceCodec,
Collection<HttpServerUpgradeHandler.UpgradeCodec> upgradeCodecs,
int maxContentLength)
Constructs the upgrader with the supported codecs.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
HttpObject msg,
List<Object> out) |
aggregate, beginAggregation, contentLength, finishAggregation, handleOversizedMessage, hasContentLength, isAggregated, isContentMessage, isLastContentMessage, isStartMessage, newContinueResponseacceptInboundMessage, channelInactive, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponentspublic HttpServerUpgradeHandler(HttpServerUpgradeHandler.SourceCodec sourceCodec, Collection<HttpServerUpgradeHandler.UpgradeCodec> upgradeCodecs, int maxContentLength)
sourceCodec - the codec that is being used initially.upgradeCodecs - the codecs (in order of preference) that this server supports
upgrading to from the source codec.maxContentLength - the maximum length of the aggregated content.protected void decode(io.netty.channel.ChannelHandlerContext ctx,
HttpObject msg,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.MessageAggregator<HttpObject,HttpMessage,HttpContent,FullHttpMessage>ExceptionCopyright © 2008–2015 The Netty Project. All rights reserved.