public class io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler 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.WebSocketServerExtensionHandler
super_class: io.netty.channel.ChannelDuplexHandler
{
private final java.util.List<io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandshaker> extensionHandshakers;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;>;
private java.util.List<io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtension> validExtensions;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension;>;
public void <init>(io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandshaker[]);
descriptor: ([Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;)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.WebSocketServerExtensionHandler io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandshaker[]
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.WebSocketServerExtensionHandler.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/WebSocketServerExtensionHandler;
0 7 1 extensionHandshakers [Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;
MethodParameters:
Name Flags
extensionHandshakers
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=4, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.http.HttpRequest
ifeq 24
1: aload 2
checkcast io.netty.handler.codec.http.HttpRequest
astore 3
start local 3 2: aload 3
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 24
3: aload 3
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 4
start local 4 4: aload 4
ifnull 24
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: iconst_0
istore 6
start local 6 8: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 23
StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpRequest java.lang.String java.util.List int top java.util.Iterator
StackMap stack:
9: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionData
astore 7
start local 7 10: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.extensionHandshakers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
11: astore 9
start local 9 12: aconst_null
astore 10
start local 10 13: goto 17
14: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpRequest java.lang.String 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.WebSocketServerExtension
StackMap stack:
aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandshaker
15: astore 11
start local 11 16: aload 11
aload 7
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandshaker.handshakeExtension:(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;)Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension;
astore 10
end local 11 17: StackMap locals:
StackMap stack:
aload 10
ifnonnull 18
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: StackMap locals:
StackMap stack:
aload 10
ifnull 23
aload 10
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtension.rsv:()I
iload 6
iand
ifne 23
19: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.validExtensions:Ljava/util/List;
ifnonnull 21
20: aload 0
new java.util.ArrayList
dup
iconst_1
invokespecial java.util.ArrayList.<init>:(I)V
putfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.validExtensions:Ljava/util/List;
21: StackMap locals:
StackMap stack:
iload 6
aload 10
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtension.rsv:()I
ior
istore 6
22: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.validExtensions:Ljava/util/List;
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 7 23: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.http.HttpRequest java.lang.String java.util.List int top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 6 end local 5 end local 4 end local 3 24: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
invokespecial io.netty.channel.ChannelDuplexHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
25: return
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/extensions/WebSocketServerExtensionHandler;
0 26 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 26 2 msg Ljava/lang/Object;
2 24 3 request Lio/netty/handler/codec/http/HttpRequest;
4 24 4 extensionsHeader Ljava/lang/String;
7 24 5 extensions Ljava/util/List<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;>;
8 24 6 rsv I
10 23 7 extensionData Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
12 23 9 extensionHandshakersIterator Ljava/util/Iterator<Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;>;
13 23 10 validExtension Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension;
16 17 11 extensionHandshaker Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandshaker;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
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=5, 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.HttpResponse
ifeq 14
1: aload 2
checkcast io.netty.handler.codec.http.HttpResponse
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 14
aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.validExtensions:Ljava/util/List;
ifnull 14
2: aload 2
checkcast io.netty.handler.codec.http.HttpResponse
astore 4
start local 4 3: aload 4
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 5
start local 5 4: aload 0
getfield io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.validExtensions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 10
StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise io.netty.handler.codec.http.HttpResponse java.lang.String top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtension
astore 6
start local 6 6: aload 6
invokeinterface io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtension.newReponseData:()Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
astore 8
start local 8 7: aload 5
8: 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;
9: 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 10: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
11: aload 3
new io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler$1
dup
aload 0
aload 1
invokespecial io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler$1.<init>:(Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler;Lio/netty/channel/ChannelHandlerContext;)V
invokeinterface io.netty.channel.ChannelPromise.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelPromise;
pop
12: aload 5
ifnull 14
13: aload 4
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;
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 14: StackMap locals: io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler 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
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtensionHandler;
0 16 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 16 2 msg Ljava/lang/Object;
0 16 3 promise Lio/netty/channel/ChannelPromise;
3 14 4 response Lio/netty/handler/codec/http/HttpResponse;
4 14 5 headerValue Ljava/lang/String;
6 10 6 extension Lio/netty/handler/codec/http/websocketx/extensions/WebSocketServerExtension;
7 10 8 extensionData Lio/netty/handler/codec/http/websocketx/extensions/WebSocketExtensionData;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx final
msg
promise
}
SourceFile: "WebSocketServerExtensionHandler.java"
NestMembers:
io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler$1
InnerClasses:
io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler$1