public class HttpClientUpgradeHandler extends HttpObjectAggregator implements io.netty.channel.ChannelOutboundHandler
| 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 | 
|---|---|
void | 
bind(io.netty.channel.ChannelHandlerContext ctx,
    SocketAddress localAddress,
    io.netty.channel.ChannelPromise promise)  | 
void | 
close(io.netty.channel.ChannelHandlerContext ctx,
     io.netty.channel.ChannelPromise promise)  | 
void | 
connect(io.netty.channel.ChannelHandlerContext ctx,
       SocketAddress remoteAddress,
       SocketAddress localAddress,
       io.netty.channel.ChannelPromise promise)  | 
protected void | 
decode(io.netty.channel.ChannelHandlerContext ctx,
      HttpObject msg,
      List<Object> out)  | 
void | 
deregister(io.netty.channel.ChannelHandlerContext ctx,
          io.netty.channel.ChannelPromise promise)  | 
void | 
disconnect(io.netty.channel.ChannelHandlerContext ctx,
          io.netty.channel.ChannelPromise promise)  | 
void | 
flush(io.netty.channel.ChannelHandlerContext ctx)  | 
void | 
read(io.netty.channel.ChannelHandlerContext ctx)  | 
void | 
write(io.netty.channel.ChannelHandlerContext ctx,
     Object msg,
     io.netty.channel.ChannelPromise promise)  | 
aggregate, beginAggregation, closeAfterContinueResponse, finishAggregation, handleOversizedMessage, ignoreContentAfterContinueResponse, isAggregated, isContentLengthInvalid, isContentMessage, isLastContentMessage, isStartMessage, newContinueResponseacceptInboundMessage, channelInactive, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponentschannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic 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 bind(io.netty.channel.ChannelHandlerContext ctx,
        SocketAddress localAddress,
        io.netty.channel.ChannelPromise promise)
          throws Exception
bind in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void connect(io.netty.channel.ChannelHandlerContext ctx,
           SocketAddress remoteAddress,
           SocketAddress localAddress,
           io.netty.channel.ChannelPromise promise)
             throws Exception
connect in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void disconnect(io.netty.channel.ChannelHandlerContext ctx,
              io.netty.channel.ChannelPromise promise)
                throws Exception
disconnect in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void close(io.netty.channel.ChannelHandlerContext ctx,
         io.netty.channel.ChannelPromise promise)
           throws Exception
close in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void deregister(io.netty.channel.ChannelHandlerContext ctx,
              io.netty.channel.ChannelPromise promise)
                throws Exception
deregister in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void read(io.netty.channel.ChannelHandlerContext ctx)
          throws Exception
read in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
         Object msg,
         io.netty.channel.ChannelPromise promise)
           throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerExceptionpublic void flush(io.netty.channel.ChannelHandlerContext ctx)
           throws Exception
flush in interface io.netty.channel.ChannelOutboundHandlerExceptionprotected 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–2017 The Netty Project. All rights reserved.