classes.io.netty.handler.codec.http.HttpServerUpgradeHandler.class Maven / Gradle / Ivy
???? 2S H ?
H ?
J ? R
? ? ? T ? H ? H ?
H ?
? ? ? ? ?
J ? ? ? H ? ? ? ?
? ? ?
H ? ? ? ? ? ? ?
? ? ?
H ? ? ? ? ? N ?
? ?
? ? ? ? ? ? ? ?
? ?
H ? ? ? N ? ?
+ ? ? ? ?
. ? ? ? ? ? ? ? ? ? ?
1 ?
1 ? ? ?
? ? ? ? ? ? ? ?
; ? ?
> ? ?
? ?
; ?
; ?
; ?
; ? ?
H ? ?
? ? ? UpgradeEvent InnerClasses UpgradeCodecFactory UpgradeCodec SourceCodec sourceCodec BLio/netty/handler/codec/http/HttpServerUpgradeHandler$SourceCodec; upgradeCodecFactory JLio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodecFactory; handlingUpgrade Z $assertionsDisabled ?(Lio/netty/handler/codec/http/HttpServerUpgradeHandler$SourceCodec;Lio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodecFactory;)V Code LineNumberTable LocalVariableTable this 6Lio/netty/handler/codec/http/HttpServerUpgradeHandler; ?(Lio/netty/handler/codec/http/HttpServerUpgradeHandler$SourceCodec;Lio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodecFactory;I)V maxContentLength I decode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V fullRequest -Lio/netty/handler/codec/http/FullHttpRequest; ctx (Lio/netty/channel/ChannelHandlerContext; msg (Lio/netty/handler/codec/http/HttpObject; out Ljava/util/List; LocalVariableTypeTable $Ljava/util/List;
StackMapTable ?
Exceptions Signature w(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V isUpgradeRequest +(Lio/netty/handler/codec/http/HttpObject;)Z upgrade X(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/FullHttpRequest;)Z p Ljava/lang/CharSequence; c CLio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodec; i requiredHeader i$ Ljava/util/Iterator; request requestedProtocols numRequestedProtocols upgradeCodec upgradeProtocol connectionHeader requiredHeaders Ljava/util/Collection; values upgradeResponse .Lio/netty/handler/codec/http/FullHttpResponse; event CLio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeEvent; finalUpgradeCodec *Ljava/util/List; 0Ljava/util/Collection; ? ? createUpgradeResponse H(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/FullHttpResponse; res 5Lio/netty/handler/codec/http/DefaultFullHttpResponse; splitHeader *(Ljava/lang/CharSequence;)Ljava/util/List; C header builder Ljava/lang/StringBuilder; protocols ? D(Ljava/lang/CharSequence;)Ljava/util/List; M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V
access$000 z(Lio/netty/handler/codec/http/HttpServerUpgradeHandler;)Lio/netty/handler/codec/http/HttpServerUpgradeHandler$SourceCodec; x0 ()V
SourceFile HttpServerUpgradeHandler.java R S Y ` Y
@io/netty/handler/codec/http/HttpServerUpgradeHandler$SourceCodec Hio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodecFactory T U V W u v
+io/netty/handler/codec/http/FullHttpRequest c ? X W java/lang/AssertionError Y ? w x ? 'io/netty/handler/codec/http/HttpRequest ? ? java/lang/CharSequence !"#$%&'()*+,-. ? ?/0 Aio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeEvent Y123 6io/netty/handler/codec/http/HttpServerUpgradeHandler$1 Y4567 3io/netty/handler/codec/http/DefaultFullHttpResponse89:;<=>?@ YABCDE java/lang/StringBuilderF java/util/ArrayListGHIJKLMNOP &io/netty/handler/codec/http/HttpObject c d 4io/netty/handler/codec/http/HttpServerUpgradeHandlerQR 0io/netty/handler/codec/http/HttpObjectAggregator Aio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodec java/lang/Exception &io/netty/channel/ChannelHandlerContext java/util/List java/util/Collection java/util/Iterator ,io/netty/handler/codec/http/FullHttpResponse (I)V !io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; io/netty/util/ReferenceCountUtil retain &(Ljava/lang/Object;)Ljava/lang/Object; add (Ljava/lang/Object;)Z isEmpty ()Z size ()I get (I)Ljava/lang/Object; clear 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; newUpgradeCodec ](Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodec;
CONNECTION requiredUpgradeHeaders ()Ljava/util/Collection; io/netty/util/AsciiString containsContentEqualsIgnoreCase 1(Ljava/util/Collection;Ljava/lang/CharSequence;)Z "containsAllContentEqualsIgnoreCase /(Ljava/util/Collection;Ljava/util/Collection;)Z iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; contains (Ljava/lang/CharSequence;)Z prepareUpgradeResponse ?(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;)Z H(Ljava/lang/CharSequence;Lio/netty/handler/codec/http/FullHttpRequest;)V
writeAndFlush 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;(Lio/netty/handler/codec/http/HttpServerUpgradeHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeCodec;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpServerUpgradeHandler$UpgradeEvent;)V io/netty/channel/ChannelFuture addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; 'io/netty/handler/codec/http/HttpVersion HTTP_1_1 )Lio/netty/handler/codec/http/HttpVersion; .io/netty/handler/codec/http/HttpResponseStatus SWITCHING_PROTOCOLS 0Lio/netty/handler/codec/http/HttpResponseStatus; io/netty/buffer/Unpooled EMPTY_BUFFER Lio/netty/buffer/ByteBuf; v(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;Lio/netty/buffer/ByteBuf;Z)V ,io/netty/handler/codec/http/HttpHeaderValues U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; CONTENT_LENGTH ZERO length charAt (I)C java/lang/Character isWhitespace (C)Z toString ()Ljava/lang/String; setLength append (C)Ljava/lang/StringBuilder; java/lang/Class desiredAssertionStatus ! H J R S T U V W X W
Y Z [ J *+,? ? \
? ? ] ^ _ R S T U Y ` [ t *? *+? ? ? *,? ? ? ? \ ? ? ? ? ] * ^ _ R S T U a b c d [ O ?*Y?
,? ??
*?
? ,? W-,?
W?,? ? ,? :,? W-,?
W? =*+,-? -? ? ?? ? -? ? ? Y? ?*?
-? ? :*+? ? -? ? \ J ?
? ? ? ! ? " ? ) ? / ? 4 ? ? ? F ? O ? P ? h ? m ? y ? ? ? ? ? ] > / e f ? ^ _ ? g h ? i j ? k l y e f m ? k n o
"? p q r s t
u v [ T *? ? *? ? ? ? ? ? ? \ ? ] i j o @ w x [ ?
,? ? ? ? N-? 6::6? 3-? ? :*? ? : ? : :? ????? ?,? ? ? :? ?? ! :? : ? ? "?
? #? ?? $ :
? % ? "
? & ? :,? ? '? ????? (:
+,
? ) ? * ? ?? +Y,? ,::+
? - ? .Y*+,? /? 0 W? \ ?
( 5 B G K O R X ] _ m r! t% }&