public class io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07 extends io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07
super_class: io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String MAGIC_GUID;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
private java.lang.String expectedChallengeResponseString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private final boolean allowExtensions;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean performMasking;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean allowMaskMismatch;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.logger:Lio/netty/util/internal/logging/InternalLogger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.URI, io.netty.handler.codec.http.websocketx.WebSocketVersion, java.lang.String, boolean, io.netty.handler.codec.http.HttpHeaders, int);
descriptor: (Ljava/net/URI;Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;ZLio/netty/handler/codec/http/HttpHeaders;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
iload 4
aload 5
iload 6
iconst_1
iconst_0
invokespecial io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.<init>:(Ljava/net/URI;Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;ZLio/netty/handler/codec/http/HttpHeaders;IZZ)V
1: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
0 2 1 webSocketURL Ljava/net/URI;
0 2 2 version Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
0 2 3 subprotocol Ljava/lang/String;
0 2 4 allowExtensions Z
0 2 5 customHeaders Lio/netty/handler/codec/http/HttpHeaders;
0 2 6 maxFramePayloadLength I
MethodParameters:
Name Flags
webSocketURL
version
subprotocol
allowExtensions
customHeaders
maxFramePayloadLength
public void <init>(java.net.URI, io.netty.handler.codec.http.websocketx.WebSocketVersion, java.lang.String, boolean, io.netty.handler.codec.http.HttpHeaders, int, boolean, boolean);
descriptor: (Ljava/net/URI;Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;ZLio/netty/handler/codec/http/HttpHeaders;IZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
aload 1
aload 2
aload 3
aload 5
iload 6
invokespecial io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker.<init>:(Ljava/net/URI;Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;Lio/netty/handler/codec/http/HttpHeaders;I)V
1: aload 0
iload 4
putfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.allowExtensions:Z
2: aload 0
iload 7
putfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.performMasking:Z
3: aload 0
iload 8
putfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.allowMaskMismatch:Z
4: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
0 5 1 webSocketURL Ljava/net/URI;
0 5 2 version Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
0 5 3 subprotocol Ljava/lang/String;
0 5 4 allowExtensions Z
0 5 5 customHeaders Lio/netty/handler/codec/http/HttpHeaders;
0 5 6 maxFramePayloadLength I
0 5 7 performMasking Z
0 5 8 allowMaskMismatch Z
MethodParameters:
Name Flags
webSocketURL
version
subprotocol
allowExtensions
customHeaders
maxFramePayloadLength
performMasking
allowMaskMismatch
protected io.netty.handler.codec.http.FullHttpRequest newHandshakeRequest();
descriptor: ()Lio/netty/handler/codec/http/FullHttpRequest;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=10, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.uri:()Ljava/net/URI;
astore 1
start local 1 1: aload 1
invokestatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.rawPath:(Ljava/net/URI;)Ljava/lang/String;
astore 2
start local 2 2: bipush 16
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.randomBytes:(I)[B
astore 3
start local 3 3: aload 3
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.base64:([B)Ljava/lang/String;
astore 4
start local 4 4: new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 5: aload 5
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.sha1:([B)[B
astore 6
start local 6 6: aload 0
aload 6
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.base64:([B)Ljava/lang/String;
putfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.expectedChallengeResponseString:Ljava/lang/String;
7: getstatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 12
8: getstatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.logger:Lio/netty/util/internal/logging/InternalLogger;
9: ldc "WebSocket version 07 client handshake key: {}, expected response: {}"
10: aload 4
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.expectedChallengeResponseString:Ljava/lang/String;
11: invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
12: StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07 java.net.URI java.lang.String byte[] java.lang.String java.lang.String byte[]
StackMap stack:
new io.netty.handler.codec.http.DefaultFullHttpRequest
dup
getstatic io.netty.handler.codec.http.HttpVersion.HTTP_1_1:Lio/netty/handler/codec/http/HttpVersion;
getstatic io.netty.handler.codec.http.HttpMethod.GET:Lio/netty/handler/codec/http/HttpMethod;
aload 2
invokespecial io.netty.handler.codec.http.DefaultFullHttpRequest.<init>:(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpMethod;Ljava/lang/String;)V
astore 7
start local 7 13: aload 7
invokeinterface io.netty.handler.codec.http.FullHttpRequest.headers:()Lio/netty/handler/codec/http/HttpHeaders;
astore 8
start local 8 14: aload 8
getstatic io.netty.handler.codec.http.HttpHeaderNames.UPGRADE:Lio/netty/util/AsciiString;
getstatic io.netty.handler.codec.http.HttpHeaderValues.WEBSOCKET:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
15: getstatic io.netty.handler.codec.http.HttpHeaderNames.CONNECTION:Lio/netty/util/AsciiString;
getstatic io.netty.handler.codec.http.HttpHeaderValues.UPGRADE:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
16: getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_KEY:Lio/netty/util/AsciiString;
aload 4
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
17: getstatic io.netty.handler.codec.http.HttpHeaderNames.HOST:Lio/netty/util/AsciiString;
aload 1
invokestatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.websocketHostValue:(Ljava/net/URI;)Ljava/lang/CharSequence;
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
18: getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_ORIGIN:Lio/netty/util/AsciiString;
aload 1
invokestatic io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.websocketOriginValue:(Ljava/net/URI;)Ljava/lang/CharSequence;
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
19: aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.expectedSubprotocol:()Ljava/lang/String;
astore 9
start local 9 20: aload 9
ifnull 22
aload 9
invokevirtual java.lang.String.isEmpty:()Z
ifne 22
21: aload 8
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_PROTOCOL:Lio/netty/util/AsciiString;
aload 9
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
22: StackMap locals: io.netty.handler.codec.http.FullHttpRequest io.netty.handler.codec.http.HttpHeaders java.lang.String
StackMap stack:
aload 8
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_VERSION:Lio/netty/util/AsciiString;
ldc "7"
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
23: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.customHeaders:Lio/netty/handler/codec/http/HttpHeaders;
ifnull 25
24: aload 8
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.customHeaders:Lio/netty/handler/codec/http/HttpHeaders;
invokevirtual io.netty.handler.codec.http.HttpHeaders.add:(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders;
pop
25: StackMap locals:
StackMap stack:
aload 7
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
1 26 1 wsURL Ljava/net/URI;
2 26 2 path Ljava/lang/String;
3 26 3 nonce [B
4 26 4 key Ljava/lang/String;
5 26 5 acceptSeed Ljava/lang/String;
6 26 6 sha1 [B
13 26 7 request Lio/netty/handler/codec/http/FullHttpRequest;
14 26 8 headers Lio/netty/handler/codec/http/HttpHeaders;
20 26 9 expectedSubprotocol Ljava/lang/String;
protected void verify(io.netty.handler.codec.http.FullHttpResponse);
descriptor: (Lio/netty/handler/codec/http/FullHttpResponse;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: getstatic io.netty.handler.codec.http.HttpResponseStatus.SWITCHING_PROTOCOLS:Lio/netty/handler/codec/http/HttpResponseStatus;
astore 2
start local 2 1: aload 1
invokeinterface io.netty.handler.codec.http.FullHttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
astore 3
start local 3 2: aload 1
invokeinterface io.netty.handler.codec.http.FullHttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
aload 2
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.equals:(Ljava/lang/Object;)Z
ifne 4
3: new io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid handshake response getStatus: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface io.netty.handler.codec.http.FullHttpResponse.status:()Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.http.websocketx.WebSocketHandshakeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.netty.handler.codec.http.HttpResponseStatus io.netty.handler.codec.http.HttpHeaders
StackMap stack:
aload 3
getstatic io.netty.handler.codec.http.HttpHeaderNames.UPGRADE:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.get:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 4
start local 4 5: getstatic io.netty.handler.codec.http.HttpHeaderValues.WEBSOCKET:Lio/netty/util/AsciiString;
aload 4
invokevirtual io.netty.util.AsciiString.contentEqualsIgnoreCase:(Ljava/lang/CharSequence;)Z
ifne 7
6: new io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid handshake response upgrade: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.http.websocketx.WebSocketHandshakeException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.CharSequence
StackMap stack:
aload 3
getstatic io.netty.handler.codec.http.HttpHeaderNames.CONNECTION:Lio/netty/util/AsciiString;
getstatic io.netty.handler.codec.http.HttpHeaderValues.UPGRADE:Lio/netty/util/AsciiString;
iconst_1
invokevirtual io.netty.handler.codec.http.HttpHeaders.containsValue:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z
ifne 11
8: new io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid handshake response connection: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
9: aload 3
getstatic io.netty.handler.codec.http.HttpHeaderNames.CONNECTION:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.get:(Ljava/lang/CharSequence;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial io.netty.handler.codec.http.websocketx.WebSocketHandshakeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 3
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_ACCEPT:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.get:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 5
start local 5 12: aload 5
ifnull 13
aload 5
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.expectedChallengeResponseString:Ljava/lang/String;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 16
13: StackMap locals: java.lang.CharSequence
StackMap stack:
new io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
dup
14: ldc "Invalid challenge. Actual: %s. Expected: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.expectedChallengeResponseString:Ljava/lang/String;
aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial io.netty.handler.codec.http.websocketx.WebSocketHandshakeException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
0 17 1 response Lio/netty/handler/codec/http/FullHttpResponse;
1 17 2 status Lio/netty/handler/codec/http/HttpResponseStatus;
2 17 3 headers Lio/netty/handler/codec/http/HttpHeaders;
5 17 4 upgrade Ljava/lang/CharSequence;
12 17 5 accept Ljava/lang/CharSequence;
MethodParameters:
Name Flags
response
protected io.netty.handler.codec.http.websocketx.WebSocketFrameDecoder newWebsocketDecoder();
descriptor: ()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: new io.netty.handler.codec.http.websocketx.WebSocket07FrameDecoder
dup
iconst_0
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.allowExtensions:Z
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.maxFramePayloadLength:()I
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.allowMaskMismatch:Z
invokespecial io.netty.handler.codec.http.websocketx.WebSocket07FrameDecoder.<init>:(ZZIZ)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
protected io.netty.handler.codec.http.websocketx.WebSocketFrameEncoder newWebSocketEncoder();
descriptor: ()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.netty.handler.codec.http.websocketx.WebSocket07FrameEncoder
dup
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker07.performMasking:Z
invokespecial io.netty.handler.codec.http.websocketx.WebSocket07FrameEncoder.<init>:(Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07;
}
SourceFile: "WebSocketClientHandshaker07.java"