io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker13.class Maven / Gradle / Ivy
???? 2 ? Bio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13 @io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker WebSocketServerHandshaker13.java WEBSOCKET_13_ACCEPT_GUID Ljava/lang/String; $258EAFA5-E914-47DA-95CA-C5AB0DC85B11 allowExtensions Z allowMaskMismatch )(Ljava/lang/String;Ljava/lang/String;ZI)V *(Ljava/lang/String;Ljava/lang/String;ZIZ)V
this DLio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker13; webSocketURL subprotocols maxFramePayloadLength I 7io/netty/handler/codec/http/websocketx/WebSocketVersion V13 9Lio/netty/handler/codec/http/websocketx/WebSocketVersion; a(Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;Ljava/lang/String;I)V
! # newHandshakeResponse ?(Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/FullHttpResponse; 3io/netty/handler/codec/http/DefaultFullHttpResponse ' '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; 1 2 0 3 \(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V
5
( 6 ,io/netty/handler/codec/http/FullHttpResponse 8 headers +()Lio/netty/handler/codec/http/HttpHeaders; : ; 9 < 'io/netty/handler/codec/http/HttpHeaders > add T(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders; @ A
? B +io/netty/handler/codec/http/FullHttpRequest D E < +io/netty/handler/codec/http/HttpHeaderNames G SEC_WEBSOCKET_KEY Lio/netty/util/AsciiString; I J H K get ,(Ljava/lang/CharSequence;)Ljava/lang/String; M N
? O Bio/netty/handler/codec/http/websocketx/WebSocketHandshakeException Q $not a WebSocket request: missing key S (Ljava/lang/String;)V
U
R V java/lang/CharSequence X java/lang/StringBuilder Z ()V
\
[ ] append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; _ `
[ a -(Ljava/lang/String;)Ljava/lang/StringBuilder; _ c
[ d toString ()Ljava/lang/String; f g
[ h io/netty/util/CharsetUtil j US_ASCII Ljava/nio/charset/Charset; l m k n java/lang/String p getBytes (Ljava/nio/charset/Charset;)[B r s
q t 4io/netty/handler/codec/http/websocketx/WebSocketUtil v sha1 ([B)[B x y
w z base64 ([B)Ljava/lang/String; | }
w ~ logger /Lio/netty/util/internal/logging/InternalLogger; ? ? ? -io/netty/util/internal/logging/InternalLogger ? isDebugEnabled ()Z ? ? ? ? ;WebSocket version 13 server handshake key: {}, response: {} ? debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? [B ? UPGRADE ? J H ? ,io/netty/handler/codec/http/HttpHeaderValues ? WEBSOCKET ? J ? ? U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; @ ?
? ?
CONNECTION ? J H ? ? ? SEC_WEBSOCKET_ACCEPT ? J H ? SEC_WEBSOCKET_PROTOCOL ? J H ? selectSubprotocol &(Ljava/lang/String;)Ljava/lang/String; ? ?
? *Requested subprotocol(s) not supported: {} ? '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? selectedSubprotocol req -Lio/netty/handler/codec/http/FullHttpRequest; )Lio/netty/handler/codec/http/HttpHeaders; res .Lio/netty/handler/codec/http/FullHttpResponse; key Ljava/lang/CharSequence;
acceptSeed accept newWebsocketDecoder @()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder; >io/netty/handler/codec/http/websocketx/WebSocket13FrameDecoder ? ()I ?
? (ZZIZ)V
?
? ? newWebSocketEncoder @()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder; >io/netty/handler/codec/http/websocketx/WebSocket13FrameEncoder ? (Z)V
?
? ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile ! ?
? a *+,? ? ? 4
?
:
;
? *? +,? *? "*? $? ? >
? Q R S T % &