io.netty.handler.codec.http.HttpClientUpgradeHandler.class Maven / Gradle / Ivy
???? 2\ 4io/netty/handler/codec/http/HttpClientUpgradeHandler 0io/netty/handler/codec/http/HttpObjectAggregator 'io/netty/channel/ChannelOutboundHandler HttpClientUpgradeHandler.java Aio/netty/handler/codec/http/HttpClientUpgradeHandler$UpgradeCodec UpgradeCodec @io/netty/handler/codec/http/HttpClientUpgradeHandler$SourceCodec SourceCodec Aio/netty/handler/codec/http/HttpClientUpgradeHandler$UpgradeEvent UpgradeEvent sourceCodec BLio/netty/handler/codec/http/HttpClientUpgradeHandler$SourceCodec; upgradeCodec CLio/netty/handler/codec/http/HttpClientUpgradeHandler$UpgradeCodec; upgradeRequested Z $assertionsDisabled ?(Lio/netty/handler/codec/http/HttpClientUpgradeHandler$SourceCodec;Lio/netty/handler/codec/http/HttpClientUpgradeHandler$UpgradeCodec;I)V (I)V
java/lang/NullPointerException (Ljava/lang/String;)V
! $ & this 6Lio/netty/handler/codec/http/HttpClientUpgradeHandler; maxContentLength I bind d(Lio/netty/channel/ChannelHandlerContext;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)V java/lang/Exception . &io/netty/channel/ChannelHandlerContext 0 [(Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; , 2 1 3 ctx (Lio/netty/channel/ChannelHandlerContext; localAddress Ljava/net/SocketAddress; promise !Lio/netty/channel/ChannelPromise; connect |(Lio/netty/channel/ChannelHandlerContext;Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)V s(Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ; = 1 >
remoteAddress
disconnect L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; A C 1 D close F C 1 G
deregister I C 1 J read +(Lio/netty/channel/ChannelHandlerContext;)V *()Lio/netty/channel/ChannelHandlerContext; L N 1 O write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V 'io/netty/handler/codec/http/HttpRequest S U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; Q U 1 V X java/lang/IllegalStateException Z 9Attempting to write HTTP request with upgrade in progress \
[ ! io/netty/channel/ChannelPromise _
setFailure 8(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise; a b ` c setUpgradeRequestHeaders T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;)V e f
g UPGRADE_ISSUED CLio/netty/handler/codec/http/HttpClientUpgradeHandler$UpgradeEvent; i j k fireUserEventTriggered <(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext; m n 1 o msg Ljava/lang/Object; flush s N 1 t decode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V java/lang/Throwable x 5Read HTTP response without requesting protocol switch z ,io/netty/handler/codec/http/FullHttpResponse | (io/netty/handler/codec/http/HttpResponse ~ .io/netty/handler/codec/http/HttpResponseStatus ? SWITCHING_PROTOCOLS 0Lio/netty/handler/codec/http/HttpResponseStatus; ? ? ? ? status 2()Lio/netty/handler/codec/http/HttpResponseStatus; ? ? ? equals (Ljava/lang/Object;)Z ? ?
? ? UPGRADE_REJECTED ? j ? removeThisHandler ? M
? fireChannelRead ? n 1 ? retain 0()Lio/netty/handler/codec/http/FullHttpResponse; ? ? } ? java/util/List ? add ? ? ? ? M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V v ?
? isEmpty ()Z ? ? ? ? ? size ()I ? ? ? ? java/lang/AssertionError ? ()V ?
? ? get (I)Ljava/lang/Object; ? ? ? ? headers +()Lio/netty/handler/codec/http/HttpHeaders; ? ? } ? +io/netty/handler/codec/http/HttpHeaderNames ? UPGRADE Lio/netty/util/AsciiString; ? ? ? ? 'io/netty/handler/codec/http/HttpHeaders ? ,(Ljava/lang/CharSequence;)Ljava/lang/String; ? ?
? ? protocol ()Ljava/lang/CharSequence; ? ? ? io/netty/util/AsciiString ? contentEqualsIgnoreCase 3(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z ? ?
? ? java/lang/StringBuilder ?
? ? ?Switching Protocols response with unexpected UPGRADE protocol: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? java/lang/CharSequence ? prepareUpgradeFrom ? M ? upgradeTo Y(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/FullHttpResponse;)V ? ? ? UPGRADE_SUCCESSFUL ? j ? upgradeFrom ? M ? release ? ? } ? clear ? ? ? ? &io/netty/handler/codec/http/HttpObject ? io/netty/util/ReferenceCountUtil ? ? ?
? ? fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; ? ? 1 ? rep *Lio/netty/handler/codec/http/HttpResponse;
upgradeHeader Ljava/lang/CharSequence; t Ljava/lang/Throwable; (Lio/netty/handler/codec/http/HttpObject; out $Ljava/util/List; Ljava/util/List; response .Lio/netty/handler/codec/http/FullHttpResponse; pipeline $()Lio/netty/channel/ChannelPipeline;
1 name ? 1 io/netty/channel/ChannelPipeline remove 5(Ljava/lang/String;)Lio/netty/channel/ChannelHandler; T ? set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
? java/util/LinkedHashSet
setUpgradeHeaders i(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;)Ljava/util/Collection; !
java/util/Set# addAll (Ljava/util/Collection;)Z%&$' iterator ()Ljava/util/Iterator;)*$+ java/util/Iterator- hasNext/ ?.0 next ()Ljava/lang/Object;23.4 3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder; ?6
?7 (C)Ljava/lang/StringBuilder; ?9
?: ,io/netty/handler/codec/http/HttpHeaderValues< = ?
CONNECTION? ? ?@ part request )Lio/netty/handler/codec/http/HttpRequest; connectionParts )Ljava/util/Set; Ljava/util/Set; builder Ljava/lang/StringBuilder; v w
J java/lang/ClassM desiredAssertionStatusO ?
NP Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions LocalVariableTypeTable Signature w(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V
SourceFile InnerClasses ! R ? ,*? +?
? Y? "?,?
? Y#? "?*+? %*,? '? S * , ( ) , , , * + T " u v w y z ! | &