public class io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler extends io.netty.channel.ChannelDuplexHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler
super_class: io.netty.channel.ChannelDuplexHandler
{
private final java.util.List<io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker> extensionHandshakers;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;>;
public void <init>(io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker[]);
descriptor: ([Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.channel.ChannelDuplexHandler.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "extensionHandshakers"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker[]
StackMap stack:
aload 1
arraylength
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "extensionHandshakers must contains at least one handshaker"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putfield io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler.extensionHandshakers:Ljava/util/List;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandler;
0 7 1 extensionHandshakers [Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;
MethodParameters:
Name Flags
extensionHandshakers
public void write(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof io.netty.handler.codec.http.HttpRequest
ifeq 11
aload 2
checkcast io.netty.handler.codec.http.HttpRequest
invokeinterface io.netty.handler.codec.http.HttpRequest.headers:()Lio/netty/handler/codec/http/HttpHeaders;
invokestatic io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionUtil.isWebsocketUpgrade:(Lio/netty/handler/codec/http/HttpHeaders;)Z
ifeq 11
1: aload 2
checkcast io.netty.handler.codec.http.HttpRequest
astore 4
start local 4 2: aload 4
invokeinterface io.netty.handler.codec.http.HttpRequest.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.getAsString:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 5
start local 5 3: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler.extensionHandshakers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 9
StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise io.netty.handler.codec.http.HttpRequest java.lang.String top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker
astore 6
start local 6 5: aload 6
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker.newRequestData:()Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
astore 8
start local 8 6: aload 5
7: aload 8
invokevirtual io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionData.name:()Ljava/lang/String;
aload 8
invokevirtual io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionData.parameters:()Ljava/util/Map;
8: invokestatic io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionUtil.appendExtension:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;
astore 5
end local 8 end local 6 9: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 4
invokeinterface io.netty.handler.codec.http.HttpRequest.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS:Lio/netty/util/AsciiString;
aload 5
invokevirtual io.netty.handler.codec.http.HttpHeaders.set:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
end local 5 end local 4 11: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokespecial io.netty.channel.ChannelDuplexHandler.write:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandler;
0 13 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 13 2 msg Ljava/lang/Object;
0 13 3 promise Lio/netty/channel/ChannelPromise;
2 11 4 request Lio/netty/handler/codec/http/HttpRequest;
3 11 5 headerValue Ljava/lang/String;
5 9 6 extensionHandshaker Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;
6 9 8 extensionData Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx final
msg
promise
public void channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.http.HttpResponse
ifeq 36
1: aload 2
checkcast io.netty.handler.codec.http.HttpResponse
astore 3
start local 3 2: aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
invokestatic io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionUtil.isWebsocketUpgrade:(Lio/netty/handler/codec/http/HttpHeaders;)Z
ifeq 36
3: aload 3
invokeinterface io.netty.handler.codec.http.HttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.handler.codec.http.HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.getAsString:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 4
start local 4 4: aload 4
ifnull 35
5: aload 4
invokestatic io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionUtil.extractExtensions:(Ljava/lang/String;)Ljava/util/List;
6: astore 5
start local 5 7: new java.util.ArrayList
dup
aload 5
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
8: astore 6
start local 6 9: iconst_0
istore 7
start local 7 10: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 27
StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpResponse java.lang.String java.util.List java.util.List int top java.util.Iterator
StackMap stack:
11: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionData
astore 8
start local 8 12: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler.extensionHandshakers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
13: astore 10
start local 10 14: aconst_null
astore 11
start local 11 15: goto 19
16: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpResponse java.lang.String java.util.List java.util.List int io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionData java.util.Iterator java.util.Iterator io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension
StackMap stack:
aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker
17: astore 12
start local 12 18: aload 12
aload 8
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandshaker.handshakeExtension:(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;)Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtension;
astore 11
end local 12 19: StackMap locals:
StackMap stack:
aload 11
ifnonnull 20
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
20: StackMap locals:
StackMap stack:
aload 11
ifnull 24
aload 11
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension.rsv:()I
iload 7
iand
ifne 24
21: iload 7
aload 11
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension.rsv:()I
ior
istore 7
22: aload 6
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
23: goto 27
24: StackMap locals:
StackMap stack:
new io.netty.handler.codec.CodecException
dup
25: new java.lang.StringBuilder
dup
ldc "invalid WebSocket Extension handshake for \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: invokespecial io.netty.handler.codec.CodecException.<init>:(Ljava/lang/String;)V
athrow
end local 11 end local 10 end local 8 27: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpResponse java.lang.String java.util.List java.util.List int top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
28: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 34
StackMap locals:
StackMap stack:
29: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension
astore 8
start local 8 30: aload 8
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension.newExtensionDecoder:()Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionDecoder;
astore 10
start local 10 31: aload 8
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtension.newExtensionEncoder:()Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionEncoder;
astore 11
start local 11 32: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
aload 10
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 10
invokeinterface io.netty.channel.ChannelPipeline.addAfter:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
33: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
aload 11
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 11
invokeinterface io.netty.channel.ChannelPipeline.addAfter:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
end local 11 end local 10 end local 8 34: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
end local 7 end local 6 end local 5 35: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketClientExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpResponse java.lang.String
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/String;)Lio/netty/channel/ChannelHandler;
pop
end local 4 end local 3 36: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokespecial io.netty.channel.ChannelDuplexHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
37: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandler;
0 38 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 38 2 msg Ljava/lang/Object;
2 36 3 response Lio/netty/handler/codec/http/HttpResponse;
4 36 4 extensionsHeader Ljava/lang/String;
7 35 5 extensions Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;>;
9 35 6 validExtensions Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtension;>;
10 35 7 rsv I
12 27 8 extensionData Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
14 27 10 extensionHandshakersIterator Ljava/util/Iterator<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;>;
15 27 11 validExtension Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtension;
18 19 12 extensionHandshaker Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtensionHandshaker;
30 34 8 validExtension Lio/netty/handler/codec/http/websocketx/extensions/WebSocketClientExtension;
31 34 10 decoder Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionDecoder;
32 34 11 encoder Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionEncoder;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
}
SourceFile: "WebSocketClientExtensionHandler.java"