All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker00.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????2bBio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00@io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker WebSocketClientHandshaker00.java	WEBSOCKETLio/netty/util/AsciiString;expectedChallengeResponseBytesLio/netty/buffer/ByteBuf;?(Ljava/net/URI;Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;Lio/netty/handler/codec/http/HttpHeaders;I)V

thisDLio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00;webSocketURLLjava/net/URI;version9Lio/netty/handler/codec/http/websocketx/WebSocketVersion;subprotocolLjava/lang/String;
customHeaders)Lio/netty/handler/codec/http/HttpHeaders;maxFramePayloadLengthInewHandshakeRequest/()Lio/netty/handler/codec/http/FullHttpRequest;4io/netty/handler/codec/http/websocketx/WebSocketUtilrandomNumber(II)I
 ???java/lang/Integer#toString(I)Ljava/lang/String;%&
$'insertRandomCharacters&(Ljava/lang/String;)Ljava/lang/String;)*
+insertSpaces'(Ljava/lang/String;I)Ljava/lang/String;-.
/randomBytes(I)[B12
3java/nio/ByteBuffer5allocate(I)Ljava/nio/ByteBuffer;78
69putInt;8
6<array()[B>?
6@java/lang/SystemB	arraycopy*(Ljava/lang/Object;ILjava/lang/Object;II)VDE
CFmd5([B)[BHI
Jio/netty/buffer/UnpooledL
wrappedBuffer([B)Lio/netty/buffer/ByteBuf;NO
MP		Ruri()Ljava/net/URI;TU
VrawPath"(Ljava/net/URI;)Ljava/lang/String;XY
Z
websocketPort(Ljava/net/URI;)I\]
^java/net/URI`getHost()Ljava/lang/String;bc
ad2io/netty/handler/codec/http/DefaultFullHttpRequestf'io/netty/handler/codec/http/HttpVersionhHTTP_1_1)Lio/netty/handler/codec/http/HttpVersion;jk	il&io/netty/handler/codec/http/HttpMethodnGET(Lio/netty/handler/codec/http/HttpMethod;pq	orf(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpMethod;Ljava/lang/String;)V
t
gu+io/netty/handler/codec/http/FullHttpRequestwheaders+()Lio/netty/handler/codec/http/HttpHeaders;yzx{+io/netty/handler/codec/http/HttpHeaderNames}UPGRADE	~?	?'io/netty/handler/codec/http/HttpHeaders?addU(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;??
??
CONNECTION?	~?,io/netty/handler/codec/http/HttpHeaderValues?	??HOST?	~?websocketHostValue((Ljava/net/URI;)Ljava/lang/CharSequence;??
?ORIGIN?	~?websocketOriginValue-(Ljava/lang/String;I)Ljava/lang/CharSequence;??
?SEC_WEBSOCKET_KEY1?	~?SEC_WEBSOCKET_KEY2?	~?expectedSubprotocol?c
?java/lang/String?isEmpty()Z??
??SEC_WEBSOCKET_PROTOCOL?	~?[B?	?T(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders;??
??CONTENT_LENGTH?	~?valueOf(I)Ljava/lang/Integer;??
$?set??
??content()Lio/netty/buffer/ByteBuf;??x?io/netty/buffer/ByteBuf?
writeBytes?O
??spaces1spaces2max1max2number1number2product1product2key1key2key3bufferLjava/nio/ByteBuffer;number1Arraynumber2Array	challengewsURLpathwsPorthostrequest-Lio/netty/handler/codec/http/FullHttpRequest;verify1(Lio/netty/handler/codec/http/FullHttpResponse;)V.io/netty/handler/codec/http/HttpResponseStatus?WebSocket Protocol Handshake?(ILjava/lang/String;)V
?
??,io/netty/handler/codec/http/FullHttpResponse?status2()Lio/netty/handler/codec/http/HttpResponseStatus;????equals(Ljava/lang/Object;)Z??
??Bio/netty/handler/codec/http/websocketx/WebSocketHandshakeException?java/lang/StringBuilder?()V
?
??&Invalid handshake response getStatus: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
?%c
?(Ljava/lang/String;)V

??{get,(Ljava/lang/CharSequence;)Ljava/lang/String;	

?io/netty/util/AsciiString
contentEqualsIgnoreCase(Ljava/lang/CharSequence;)Z
$Invalid handshake response upgrade: java/lang/CharSequence
containsValue4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
?'Invalid handshake response connection: ??
??Invalid challengeresponse.Lio/netty/handler/codec/http/FullHttpResponse;0Lio/netty/handler/codec/http/HttpResponseStatus;upgradeLjava/lang/CharSequence;[C&java/lang/Math(random()D*+
),@_?@@?length()I23
?4	substring(II)Ljava/lang/String;67
?86&
?:(C)Ljava/lang/StringBuilder;?<
?=randsplitpart1part2ikeycountrandomChars	randCountspacesnewWebsocketDecoder@()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;>io/netty/handler/codec/http/websocketx/WebSocket00FrameDecoderK3
M(I)V
O
LPnewWebSocketEncoder@()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder;>io/netty/handler/codec/http/websocketx/WebSocket00FrameEncoderT
U?	WebSocketX(Ljava/lang/CharSequence;)V
Z
[CodeLocalVariableTableLineNumberTable
StackMapTable
SourceFile!	
]l*+,-?
?^>_
CD]???!<?!="l>"l6?!6?!6h6h6?(:	?(:
	?,:	
?,:
	?0:	
?0:
?4:?::?=W?A:
?::?=W?A:?:
?G?G?G*?K?Q?S*?W:?[:?_6?e:?gY?m?s?v:?|:??????????????????????????	????
??W*??:????????W*???
*????W???????W????W?^??|?u?p?j? c?([?.U?4O?;H?	BA?
g??m??|??
??????????????????????????y;H?_?.[\^_a b(d.e4g;hBjIkPmXn`pgrmsut|u?v?w?y?z?{?|?}??????????????	???)?1?5?;?H?S?Z?d?s???`=?S???6???a??x????]o???Ye??M+??,??#??Y??Y?????+??????+?N-???:???? ??Y??Y????????-??????%??Y??Y????-????????+?:*?S????Y ???^>??!"??#@?yIx$%??	_:???9?@?I?T?q????????????`?9??7?/??
)*]f??!<?M>?9?-.k0c?6!?
/?:?~?,?U????6?@*?5?!6*?9:*?;:??Y????,4?>???K????*?^\	 %?[-@d$AlBKCC?D?E?F&
?G_B???
?? ?<?B?E?H?Q?[?d?l?????`?
'? 
???B
-.]?C=?=*?5d?!>*?9:*?;:??Y???? ?>???K????*?^>)@!A!B?CCDCH_????!?;?A?`	??>IJ]6?LY*?N?Q?^_?RS]2?UY?V?^_?W?]&?YY?\???_.a




© 2015 - 2025 Weber Informatics LLC | Privacy Policy