io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker07.class Maven / Gradle / Ivy
???? 2 ? Bio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker07 @io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker WebSocketServerHandshaker07.java WEBSOCKET_07_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/WebSocketServerHandshaker07; webSocketURL subprotocols maxFramePayloadLength I 7io/netty/handler/codec/http/websocketx/WebSocketVersion V07 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 ? ? ? ?