public class HttpClientUpgradeHandler extends HttpObjectAggregator
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpClientUpgradeHandler.SourceCodec
The source codec that is used in the pipeline initially.
|
static interface |
HttpClientUpgradeHandler.UpgradeCodec
A codec that the source can be upgraded to.
|
static class |
HttpClientUpgradeHandler.UpgradeEvent
User events that are fired to notify about upgrade status.
|
| Constructor and Description |
|---|
HttpClientUpgradeHandler(HttpClientUpgradeHandler.SourceCodec sourceCodec,
HttpClientUpgradeHandler.UpgradeCodec upgradeCodec,
int maxContentLength)
Constructs the client upgrade handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
HttpObject msg,
List<Object> out) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
aggregate, beginAggregation, contentLength, finishAggregation, handleOversizedMessage, hasContentLength, isAggregated, isContentMessage, isLastContentMessage, isStartMessage, newContinueResponseacceptInboundMessage, channelInactive, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponentspublic HttpClientUpgradeHandler(HttpClientUpgradeHandler.SourceCodec sourceCodec, HttpClientUpgradeHandler.UpgradeCodec upgradeCodec, int maxContentLength)
sourceCodec - the codec that is being used initially.upgradeCodec - the codec that the client would like to upgrade to.maxContentLength - the maximum length of the aggregated content.public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelHandlerwrite in class io.netty.channel.ChannelHandlerAdapterExceptionprotected 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.