io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.class Maven / Gradle / Ivy
???? 2 ? Qio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler %io/netty/channel/ChannelDuplexHandler $WebSocketServerExtensionHandler.java Sio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler$1 extensionHandshakers Ljava/util/List; hLjava/util/List; validExtensions ^Ljava/util/List; Z([Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;)V ()V
java/lang/NullPointerException (Ljava/lang/String;)V
W[Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker; "java/lang/IllegalArgumentException :extensionHandshakers must contains at least one handshaker
java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; ! "
# % this SLio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler; channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V java/lang/Exception + 'io/netty/handler/codec/http/HttpRequest - headers +()Lio/netty/handler/codec/http/HttpHeaders; / 0 . 1 Hio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionUtil 3 isWebsocketUpgrade ,(Lio/netty/handler/codec/http/HttpHeaders;)Z 5 6
4 7 +io/netty/handler/codec/http/HttpHeaderNames 9 SEC_WEBSOCKET_EXTENSIONS Lio/netty/util/AsciiString; ; < : = 'io/netty/handler/codec/http/HttpHeaders ? getAsString ,(Ljava/lang/CharSequence;)Ljava/lang/String; A B
@ C extractExtensions $(Ljava/lang/String;)Ljava/util/List; E F
4 G java/util/List I iterator ()Ljava/util/Iterator; K L J M &io/netty/channel/ChannelHandlerContext O java/lang/Object Q java/lang/String S java/util/Iterator U hasNext ()Z W X V Y next ()Ljava/lang/Object; [ \ V ] Hio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData _ Jio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension a Tio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker c handshakeExtension ?(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;)Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension; e f d g rsv ()I i j b k m java/util/ArrayList o (I)V
q
p r add (Ljava/lang/Object;)Z t u J v ) *
x extensionHandshaker VLio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker; extensionHandshakersIterator lLjava/util/Iterator; Ljava/util/Iterator; validExtension LLio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension;
extensionData JLio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
extensions \Ljava/util/List; I extensionsHeader Ljava/lang/String; request )Lio/netty/handler/codec/http/HttpRequest; ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object; write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V (io/netty/handler/codec/http/HttpResponse ? ? 1 newReponseData L()Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData; ? ? b ? name ()Ljava/lang/String; ? ?
` ?
parameters ()Ljava/util/Map; ? ?
` ? appendExtension G(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; ? ?
4 ? ~(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler;Lio/netty/channel/ChannelHandlerContext;)V
?
? io/netty/channel/ChannelPromise ? addListener S(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelPromise; ? ? ? ? set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; ? ?
@ ? ? ?
? extension response *Lio/netty/handler/codec/http/HttpResponse; headerValue promise !Lio/netty/channel/ChannelPromise;
access$000 e(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler;)Ljava/util/List; x0 Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions
SourceFile InnerClasses ! ?
? ?
? ? **? +?
? Y? ?+??
? Y? ?*+? $? &? ? * ' ( * ? 7 8 9 ; <