public abstract class io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker
super_class: java.lang.Object
{
protected static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private static final java.nio.channels.ClosedChannelException CLOSED_CHANNEL_EXCEPTION;
descriptor: Ljava/nio/channels/ClosedChannelException;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String uri;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] subprotocols;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.http.websocketx.WebSocketVersion version;
descriptor: Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maxFramePayloadLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String selectedSubprotocol;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public static final java.lang.String SUB_PROTOCOL_WILDCARD;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "*"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.logger:Lio/netty/util/internal/logging/InternalLogger;
1: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
ldc Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
ldc "handshake(...)"
2: invokestatic io.netty.util.internal.ThrowableUtil.unknownStackTrace:(Ljava/lang/Throwable;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Throwable;
checkcast java.nio.channels.ClosedChannelException
putstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.CLOSED_CHANNEL_EXCEPTION:Ljava/nio/channels/ClosedChannelException;
3: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(io.netty.handler.codec.http.websocketx.WebSocketVersion, java.lang.String, java.lang.String, int);
descriptor: (Lio/netty/handler/codec/http/websocketx/WebSocketVersion;Ljava/lang/String;Ljava/lang/String;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.version:Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
2: aload 0
aload 2
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.uri:Ljava/lang/String;
3: aload 3
ifnull 12
4: aload 3
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 9
7: StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker io.netty.handler.codec.http.websocketx.WebSocketVersion java.lang.String java.lang.String int java.lang.String[] int
StackMap stack:
aload 5
iload 6
aload 5
iload 6
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
aastore
8: iinc 6 1
StackMap locals:
StackMap stack:
9: iload 6
aload 5
arraylength
if_icmplt 7
end local 6 10: aload 0
aload 5
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.subprotocols:[Ljava/lang/String;
end local 5 11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
getstatic io.netty.util.internal.EmptyArrays.EMPTY_STRINGS:[Ljava/lang/String;
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.subprotocols:[Ljava/lang/String;
13: StackMap locals:
StackMap stack:
aload 0
iload 4
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.maxFramePayloadLength:I
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 15 1 version Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
0 15 2 uri Ljava/lang/String;
0 15 3 subprotocols Ljava/lang/String;
0 15 4 maxFramePayloadLength I
5 11 5 subprotocolArray [Ljava/lang/String;
6 10 6 i I
MethodParameters:
Name Flags
version
uri
subprotocols
maxFramePayloadLength
public java.lang.String uri();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.uri:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
public java.util.Set<java.lang.String> subprotocols();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.subprotocols:[Ljava/lang/String;
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
1 3 1 ret Ljava/util/Set<Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public io.netty.handler.codec.http.websocketx.WebSocketVersion version();
descriptor: ()Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.version:Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
public int maxFramePayloadLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.maxFramePayloadLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
public io.netty.channel.ChannelFuture handshake(io.netty.channel.Channel, io.netty.handler.codec.http.FullHttpRequest);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/FullHttpRequest;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
aload 1
invokeinterface io.netty.channel.Channel.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 1 1 channel Lio/netty/channel/Channel;
0 1 2 req Lio/netty/handler/codec/http/FullHttpRequest;
MethodParameters:
Name Flags
channel
req
public final io.netty.channel.ChannelFuture handshake(io.netty.channel.Channel, io.netty.handler.codec.http.FullHttpRequest, io.netty.handler.codec.http.HttpHeaders, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 2
1: getstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} WebSocket version {} server handshake"
aload 1
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.version:()Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 3
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.newHandshakeResponse:(Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/FullHttpResponse;
astore 5
start local 5 3: aload 1
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 6
start local 6 4: aload 6
ldc Lio/netty/handler/codec/http/HttpObjectAggregator;
invokeinterface io.netty.channel.ChannelPipeline.get:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
ifnull 6
5: aload 6
ldc Lio/netty/handler/codec/http/HttpObjectAggregator;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
pop
6: StackMap locals: io.netty.handler.codec.http.FullHttpResponse io.netty.channel.ChannelPipeline
StackMap stack:
aload 6
ldc Lio/netty/handler/codec/http/HttpContentCompressor;
invokeinterface io.netty.channel.ChannelPipeline.get:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
ifnull 8
7: aload 6
ldc Lio/netty/handler/codec/http/HttpContentCompressor;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
pop
8: StackMap locals:
StackMap stack:
aload 6
ldc Lio/netty/handler/codec/http/HttpRequestDecoder;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandlerContext;
astore 7
start local 7 9: aload 7
ifnonnull 20
10: aload 6
ldc Lio/netty/handler/codec/http/HttpServerCodec;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandlerContext;
astore 7
11: aload 7
ifnonnull 16
12: aload 4
13: new java.lang.IllegalStateException
dup
ldc "No HttpDecoder and no HttpServerCodec in the pipeline"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
14: invokeinterface io.netty.channel.ChannelPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;
pop
15: aload 4
areturn
16: StackMap locals: io.netty.channel.ChannelHandlerContext
StackMap stack:
aload 6
aload 7
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
ldc "wsdecoder"
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.newWebsocketDecoder:()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
17: aload 6
aload 7
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
ldc "wsencoder"
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.newWebSocketEncoder:()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder;
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
18: aload 7
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
astore 8
start local 8 19: goto 23
end local 8 20: StackMap locals:
StackMap stack:
aload 6
aload 7
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
ldc "wsdecoder"
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.newWebsocketDecoder:()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;
invokeinterface io.netty.channel.ChannelPipeline.replace:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelHandler;
pop
21: aload 6
ldc Lio/netty/handler/codec/http/HttpResponseEncoder;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
astore 8
start local 8 22: aload 6
aload 8
ldc "wsencoder"
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.newWebSocketEncoder:()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder;
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
23: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 5
invokeinterface io.netty.channel.Channel.writeAndFlush:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
new io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$1
dup
aload 0
aload 8
aload 4
invokespecial io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$1.<init>:(Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;Ljava/lang/String;Lio/netty/channel/ChannelPromise;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
24: aload 4
areturn
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 25 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 25 1 channel Lio/netty/channel/Channel;
0 25 2 req Lio/netty/handler/codec/http/FullHttpRequest;
0 25 3 responseHeaders Lio/netty/handler/codec/http/HttpHeaders;
0 25 4 promise Lio/netty/channel/ChannelPromise;
3 25 5 response Lio/netty/handler/codec/http/FullHttpResponse;
4 25 6 p Lio/netty/channel/ChannelPipeline;
9 25 7 ctx Lio/netty/channel/ChannelHandlerContext;
19 20 8 encoderName Ljava/lang/String;
22 25 8 encoderName Ljava/lang/String;
MethodParameters:
Name Flags
channel
req
responseHeaders
promise final
public io.netty.channel.ChannelFuture handshake(io.netty.channel.Channel, io.netty.handler.codec.http.HttpRequest);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpRequest;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
aload 1
invokeinterface io.netty.channel.Channel.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpRequest;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 1 1 channel Lio/netty/channel/Channel;
0 1 2 req Lio/netty/handler/codec/http/HttpRequest;
MethodParameters:
Name Flags
channel
req
public final io.netty.channel.ChannelFuture handshake(io.netty.channel.Channel, io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.HttpHeaders, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpRequest;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=9, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
instanceof io.netty.handler.codec.http.FullHttpRequest
ifeq 2
1: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.http.FullHttpRequest
aload 3
aload 4
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
2: StackMap locals:
StackMap stack:
getstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 4
3: getstatic io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} WebSocket version {} server handshake"
aload 1
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.version:()Lio/netty/handler/codec/http/websocketx/WebSocketVersion;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 5
start local 5 5: aload 5
ldc Lio/netty/handler/codec/http/HttpRequestDecoder;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandlerContext;
astore 6
start local 6 6: aload 6
ifnonnull 13
7: aload 5
ldc Lio/netty/handler/codec/http/HttpServerCodec;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandlerContext;
astore 6
8: aload 6
ifnonnull 13
9: aload 4
10: new java.lang.IllegalStateException
dup
ldc "No HttpDecoder and no HttpServerCodec in the pipeline"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
11: invokeinterface io.netty.channel.ChannelPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;
pop
12: aload 4
areturn
13: StackMap locals: io.netty.channel.ChannelPipeline io.netty.channel.ChannelHandlerContext
StackMap stack:
ldc "httpAggregator"
astore 7
start local 7 14: aload 5
aload 6
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
aload 7
new io.netty.handler.codec.http.HttpObjectAggregator
dup
sipush 8192
invokespecial io.netty.handler.codec.http.HttpObjectAggregator.<init>:(I)V
invokeinterface io.netty.channel.ChannelPipeline.addAfter:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
15: aload 5
aload 7
ldc "handshaker"
new io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2
dup
aload 0
aload 1
aload 3
aload 4
invokespecial io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2.<init>:(Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/channel/ChannelPromise;)V
invokeinterface io.netty.channel.ChannelPipeline.addAfter:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
16: aload 6
aload 2
invokestatic io.netty.util.ReferenceCountUtil.retain:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface io.netty.channel.ChannelHandlerContext.fireChannelRead:(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext;
pop
17: goto 20
StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker io.netty.channel.Channel io.netty.handler.codec.http.HttpRequest io.netty.handler.codec.http.HttpHeaders io.netty.channel.ChannelPromise io.netty.channel.ChannelPipeline io.netty.channel.ChannelHandlerContext java.lang.String
StackMap stack: java.lang.Throwable
18: astore 8
start local 8 19: aload 4
aload 8
invokeinterface io.netty.channel.ChannelPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;
pop
end local 8 20: StackMap locals:
StackMap stack:
aload 4
areturn
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 21 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 21 1 channel Lio/netty/channel/Channel;
0 21 2 req Lio/netty/handler/codec/http/HttpRequest;
0 21 3 responseHeaders Lio/netty/handler/codec/http/HttpHeaders;
0 21 4 promise Lio/netty/channel/ChannelPromise;
5 21 5 p Lio/netty/channel/ChannelPipeline;
6 21 6 ctx Lio/netty/channel/ChannelHandlerContext;
14 21 7 aggregatorName Ljava/lang/String;
19 20 8 cause Ljava/lang/Throwable;
Exception table:
from to target type
16 17 18 Class java.lang.Throwable
MethodParameters:
Name Flags
channel final
req
responseHeaders final
promise final
protected abstract io.netty.handler.codec.http.FullHttpResponse newHandshakeResponse(io.netty.handler.codec.http.FullHttpRequest, io.netty.handler.codec.http.HttpHeaders);
descriptor: (Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/FullHttpResponse;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
req
responseHeaders
public io.netty.channel.ChannelFuture close(io.netty.channel.Channel, io.netty.handler.codec.http.websocketx.CloseWebSocketFrame);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "channel"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 1
invokeinterface io.netty.channel.Channel.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.close:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 3 1 channel Lio/netty/channel/Channel;
0 3 2 frame Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;
MethodParameters:
Name Flags
channel
frame
public io.netty.channel.ChannelFuture close(io.netty.channel.Channel, io.netty.handler.codec.http.websocketx.CloseWebSocketFrame, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "channel"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 2
aload 3
invokeinterface io.netty.channel.Channel.writeAndFlush:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
getstatic io.netty.channel.ChannelFutureListener.CLOSE:Lio/netty/channel/ChannelFutureListener;
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 3 1 channel Lio/netty/channel/Channel;
0 3 2 frame Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;
0 3 3 promise Lio/netty/channel/ChannelPromise;
MethodParameters:
Name Flags
channel
frame
promise
protected java.lang.String selectSubprotocol(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=12, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.subprotocols:[Ljava/lang/String;
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 3: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 15
StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 7
start local 7 6: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.subprotocols:[Ljava/lang/String;
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 13
StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker java.lang.String java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
7: aload 11
iload 9
aaload
astore 8
start local 8 8: ldc "*"
aload 8
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
9: aload 7
aload 8
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker java.lang.String java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String java.lang.String int int java.lang.String[]
StackMap stack:
aload 0
aload 7
putfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.selectedSubprotocol:Ljava/lang/String;
11: aload 7
areturn
end local 8 12: StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker java.lang.String java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
13: iload 9
iload 10
if_icmplt 7
end local 7 end local 3 14: iinc 4 1
StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
15: iload 4
iload 5
if_icmplt 4
16: aconst_null
areturn
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/WebSocketServerHandshaker;
0 17 1 requestedSubprotocols Ljava/lang/String;
3 17 2 requestedSubprotocolArray [Ljava/lang/String;
5 14 3 p Ljava/lang/String;
6 14 7 requestedSubprotocol Ljava/lang/String;
8 12 8 supportedSubprotocol Ljava/lang/String;
MethodParameters:
Name Flags
requestedSubprotocols
public java.lang.String selectedSubprotocol();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.selectedSubprotocol:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
protected abstract io.netty.handler.codec.http.websocketx.WebSocketFrameDecoder newWebsocketDecoder();
descriptor: ()Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract io.netty.handler.codec.http.websocketx.WebSocketFrameEncoder newWebSocketEncoder();
descriptor: ()Lio/netty/handler/codec/http/websocketx/WebSocketFrameEncoder;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
}
SourceFile: "WebSocketServerHandshaker.java"
NestMembers:
io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$1 io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2
InnerClasses:
io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$1
io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker$2