public class io.vertx.core.http.impl.ServerWebSocketImpl extends io.vertx.core.http.impl.WebSocketImplBase<io.vertx.core.http.impl.ServerWebSocketImpl> implements io.vertx.core.http.ServerWebSocket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.http.impl.ServerWebSocketImpl
super_class: io.vertx.core.http.impl.WebSocketImplBase
{
private final io.vertx.core.http.impl.Http1xServerConnection conn;
descriptor: Lio/vertx/core/http/impl/Http1xServerConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String scheme;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String uri;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String query;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker handshaker;
descriptor: Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.vertx.core.http.impl.Http1xServerRequest request;
descriptor: Lio/vertx/core/http/impl/Http1xServerRequest;
flags: (0x0002) ACC_PRIVATE
private java.lang.Integer status;
descriptor: Ljava/lang/Integer;
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.Promise<java.lang.Integer> handshakePromise;
descriptor: Lio/vertx/core/Promise;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Promise<Ljava/lang/Integer;>;
void <init>(io.vertx.core.impl.ContextInternal, io.vertx.core.http.impl.Http1xServerConnection, boolean, io.vertx.core.http.impl.Http1xServerRequest, io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker, int, int);
descriptor: (Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/http/impl/Http1xServerConnection;ZLio/vertx/core/http/impl/Http1xServerRequest;Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;II)V
flags: (0x0000)
Code:
stack=6, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 1
aload 2
iload 3
iload 6
iload 7
invokespecial io.vertx.core.http.impl.WebSocketImplBase.<init>:(Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/http/impl/Http1xConnectionBase;ZII)V
1: aload 0
aload 2
putfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
2: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.scheme:()Ljava/lang/String;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.scheme:Ljava/lang/String;
3: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.host:()Ljava/lang/String;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.host:Ljava/lang/String;
4: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.uri:()Ljava/lang/String;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.uri:Ljava/lang/String;
5: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.path:()Ljava/lang/String;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.path:Ljava/lang/String;
6: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.query:()Ljava/lang/String;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.query:Ljava/lang/String;
7: aload 0
aload 4
putfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
8: aload 0
aload 5
putfield io.vertx.core.http.impl.ServerWebSocketImpl.handshaker:Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
9: aload 0
aload 4
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.headers:()Lio/vertx/core/MultiMap;
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.headers:(Lio/vertx/core/MultiMap;)V
10: return
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 11 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 11 1 context Lio/vertx/core/impl/ContextInternal;
0 11 2 conn Lio/vertx/core/http/impl/Http1xServerConnection;
0 11 3 supportsContinuation Z
0 11 4 request Lio/vertx/core/http/impl/Http1xServerRequest;
0 11 5 handshaker Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
0 11 6 maxWebSocketFrameSize I
0 11 7 maxWebSocketMessageSize I
MethodParameters:
Name Flags
context
conn
supportsContinuation
request
handshaker
maxWebSocketFrameSize
maxWebSocketMessageSize
public java.lang.String scheme();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.scheme:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public java.lang.String host();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.host:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
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.vertx.core.http.impl.ServerWebSocketImpl.uri:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public java.lang.String path();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public java.lang.String query();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.query:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public void accept();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 101
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.tryHandshake:(I)Ljava/lang/Boolean;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
if_acmpeq 2
1: new java.lang.IllegalStateException
dup
ldc "WebSocket already rejected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public void reject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 502
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.reject:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public void reject(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 101
if_icmpne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid WebSocket rejection status code: 101"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.tryHandshake:(I)Ljava/lang/Boolean;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
if_acmpeq 4
3: new java.lang.IllegalStateException
dup
ldc "Cannot reject WebSocket, it has already been written to"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 5 1 sc I
MethodParameters:
Name Flags
sc
public javax.net.ssl.SSLSession sslSession();
descriptor: ()Ljavax/net/ssl/SSLSession;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.sslSession:()Ljavax/net/ssl/SSLSession;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
public javax.security.cert.X509Certificate[] peerCertificateChain();
descriptor: ()[Ljavax/security/cert/X509Certificate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.peerCertificateChain:()[Ljavax/security/cert/X509Certificate;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
Exceptions:
throws javax.net.ssl.SSLPeerUnverifiedException
public io.vertx.core.Future<java.lang.Void> close(short, java.lang.String);
descriptor: (SLjava/lang/String;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
dup
astore 3
monitorenter
1: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
ifnonnull 6
2: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshakePromise:Lio/vertx/core/Promise;
ifnonnull 5
3: aload 0
bipush 101
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.tryHandshake:(I)Ljava/lang/Boolean;
pop
4: goto 6
5: StackMap locals: io.vertx.core.http.impl.Http1xServerConnection
StackMap stack:
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshakePromise:Lio/vertx/core/Promise;
bipush 101
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.vertx.core.Promise.tryComplete:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
aload 3
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
invokespecial io.vertx.core.http.impl.WebSocketImplBase.close:(SLjava/lang/String;)Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 11 1 statusCode S
0 11 2 reason Ljava/lang/String;
Exception table:
from to target type
1 7 8 any
8 9 8 any
Signature: (SLjava/lang/String;)Lio/vertx/core/Future<Ljava/lang/Void;>;
MethodParameters:
Name Flags
statusCode
reason
public io.vertx.core.Future<java.lang.Void> writeFrame(io.vertx.core.http.WebSocketFrame);
descriptor: (Lio/vertx/core/http/WebSocketFrame;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
dup
astore 2
monitorenter
1: aload 0
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.checkAccept:()Ljava/lang/Boolean;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: new java.lang.IllegalStateException
dup
ldc "Cannot write to WebSocket, it is pending accept or reject"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.vertx.core.http.impl.Http1xServerConnection java.lang.Boolean
StackMap stack:
aload 3
invokevirtual java.lang.Boolean.booleanValue:()Z
ifne 6
5: new java.lang.IllegalStateException
dup
ldc "Cannot write to WebSocket, it has been rejected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial io.vertx.core.http.impl.WebSocketImplBase.writeFrame:(Lio/vertx/core/http/WebSocketFrame;)Lio/vertx/core/Future;
aload 2
monitorexit
7: areturn
end local 3 8: StackMap locals: io.vertx.core.http.impl.ServerWebSocketImpl io.vertx.core.http.WebSocketFrame io.vertx.core.http.impl.Http1xServerConnection
StackMap stack: java.lang.Throwable
aload 2
monitorexit
9: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 10 1 frame Lio/vertx/core/http/WebSocketFrame;
2 8 3 check Ljava/lang/Boolean;
Exception table:
from to target type
1 7 8 any
8 9 8 any
Signature: (Lio/vertx/core/http/WebSocketFrame;)Lio/vertx/core/Future<Ljava/lang/Void;>;
MethodParameters:
Name Flags
frame
private java.lang.Boolean checkAccept();
descriptor: ()Ljava/lang/Boolean;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 101
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.tryHandshake:(I)Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
private void handleHandshake(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
dup
astore 2
monitorenter
1: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
ifnonnull 7
2: iload 1
bipush 101
if_icmpne 5
3: aload 0
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.doHandshake:()V
4: goto 7
5: StackMap locals: io.vertx.core.http.impl.Http1xServerConnection
StackMap stack:
aload 0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
6: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.channel:()Lio/netty/channel/Channel;
iload 1
invokestatic io.netty.handler.codec.http.HttpResponseStatus.valueOf:(I)Lio/netty/handler/codec/http/HttpResponseStatus;
invokestatic io.vertx.core.http.impl.HttpUtils.sendError:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpResponseStatus;)V
7: StackMap locals:
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 12 1 sc I
Exception table:
from to target type
1 8 9 any
9 10 9 any
MethodParameters:
Name Flags
sc
private void doHandshake();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.channel:()Lio/netty/channel/Channel;
astore 1
start local 1 1: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshaker:Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
aload 1
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.nettyRequest:()Lio/netty/handler/codec/http/HttpRequest;
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.handshake:(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/HttpRequest;)Lio/netty/channel/ChannelFuture;
pop
2: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
getfield io.vertx.core.http.impl.Http1xServerRequest.metric:Ljava/lang/Object;
astore 2
start local 2 3: goto 10
end local 2 StackMap locals: io.vertx.core.http.impl.ServerWebSocketImpl io.netty.channel.Channel
StackMap stack: java.lang.Exception
4: astore 3
start local 3 5: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
invokevirtual io.vertx.core.http.impl.Http1xServerRequest.response:()Lio/vertx/core/http/impl/Http1xServerResponse;
getstatic io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
invokevirtual io.vertx.core.http.impl.Http1xServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
invokeinterface io.vertx.core.http.HttpServerResponse.end:()Lio/vertx/core/Future;
pop
6: aload 3
athrow
end local 3 7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
8: aload 0
aconst_null
putfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
9: aload 4
athrow
start local 2 10: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.http.impl.ServerWebSocketImpl.request:Lio/vertx/core/http/impl/Http1xServerRequest;
11: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
getfield io.vertx.core.http.impl.Http1xServerConnection.metrics:Lio/vertx/core/spi/metrics/HttpServerMetrics;
ifnull 13
12: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
getfield io.vertx.core.http.impl.Http1xServerConnection.metrics:Lio/vertx/core/spi/metrics/HttpServerMetrics;
aload 2
new io.vertx.core.http.impl.HttpResponseHead
dup
getstatic io.vertx.core.http.HttpVersion.HTTP_1_1:Lio/vertx/core/http/HttpVersion;
bipush 101
ldc "Switching Protocol"
invokestatic io.vertx.core.MultiMap.caseInsensitiveMultiMap:()Lio/vertx/core/MultiMap;
invokespecial io.vertx.core.http.impl.HttpResponseHead.<init>:(Lio/vertx/core/http/HttpVersion;ILjava/lang/String;Lio/vertx/core/MultiMap;)V
invokeinterface io.vertx.core.spi.metrics.HttpServerMetrics.responseBegin:(Ljava/lang/Object;Lio/vertx/core/spi/observability/HttpResponse;)V
13: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.responseComplete:()V
14: aload 0
getstatic io.netty.handler.codec.http.HttpResponseStatus.SWITCHING_PROTOCOLS:Lio/netty/handler/codec/http/HttpResponseStatus;
invokevirtual io.netty.handler.codec.http.HttpResponseStatus.code:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
15: aload 0
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshaker:Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;
invokevirtual io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker.selectedSubprotocol:()Ljava/lang/String;
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.subProtocol:(Ljava/lang/String;)V
16: aload 1
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 3
start local 3 17: aload 3
ldc Lio/vertx/core/http/impl/HttpChunkContentCompressor;
invokeinterface io.netty.channel.ChannelPipeline.get:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
astore 4
start local 4 18: aload 4
ifnull 20
19: aload 3
aload 4
invokeinterface io.netty.channel.ChannelPipeline.remove:(Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
20: StackMap locals: io.netty.channel.ChannelPipeline io.netty.channel.ChannelHandler
StackMap stack:
aload 0
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.getContext:()Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.owner:()Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.eventBus:()Lio/vertx/core/eventbus/EventBus;
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.registerHandler:(Lio/vertx/core/eventbus/EventBus;)V
21: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
1 22 1 channel Lio/netty/channel/Channel;
3 4 2 metric Ljava/lang/Object;
10 22 2 metric Ljava/lang/Object;
5 7 3 e Ljava/lang/Exception;
17 22 3 pipeline Lio/netty/channel/ChannelPipeline;
18 22 4 handler Lio/netty/channel/ChannelHandler;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
1 7 7 any
java.lang.Boolean tryHandshake(int);
descriptor: (I)Ljava/lang/Boolean;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
dup
astore 2
monitorenter
1: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
ifnonnull 3
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshakePromise:Lio/vertx/core/Promise;
ifnonnull 3
2: aload 0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.setHandshake:(Lio/vertx/core/Future;)Lio/vertx/core/Future;
pop
3: StackMap locals: io.vertx.core.http.impl.Http1xServerConnection
StackMap stack:
aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
ifnonnull 4
aconst_null
goto 7
StackMap locals:
StackMap stack:
4: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.status:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iload 1
if_icmpne 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
StackMap locals:
StackMap stack: java.lang.Boolean
7: aload 2
monitorexit
8: areturn
9: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
10: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 11 1 sc I
Exception table:
from to target type
1 8 9 any
9 10 9 any
MethodParameters:
Name Flags
sc
public void setHandshake(io.vertx.core.Future<java.lang.Integer>, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Integer>>);
descriptor: (Lio/vertx/core/Future;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.setHandshake:(Lio/vertx/core/Future;)Lio/vertx/core/Future;
astore 3
start local 3 1: aload 3
aload 2
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 3 1 future Lio/vertx/core/Future<Ljava/lang/Integer;>;
0 3 2 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Integer;>;>;
1 3 3 fut Lio/vertx/core/Future<Ljava/lang/Integer;>;
Signature: (Lio/vertx/core/Future<Ljava/lang/Integer;>;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Integer;>;>;)V
MethodParameters:
Name Flags
future
handler
public io.vertx.core.Future<java.lang.Integer> setHandshake(io.vertx.core.Future<java.lang.Integer>);
descriptor: (Lio/vertx/core/Future;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
astore 2
start local 2 3: invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
astore 3
start local 3 4: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
dup
astore 4
monitorenter
5: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.handshakePromise:Lio/vertx/core/Promise;
ifnull 7
6: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
7: StackMap locals: io.vertx.core.Promise io.vertx.core.Promise io.vertx.core.http.impl.Http1xServerConnection
StackMap stack:
aload 0
aload 2
putfield io.vertx.core.http.impl.ServerWebSocketImpl.handshakePromise:Lio/vertx/core/Promise;
8: aload 4
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 4
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
13: aload 2
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 0
aload 3
invokedynamic handle(Lio/vertx/core/http/impl/ServerWebSocketImpl;Lio/vertx/core/Promise;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/core/http/impl/ServerWebSocketImpl.lambda$0(Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
14: aload 3
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 15 1 future Lio/vertx/core/Future<Ljava/lang/Integer;>;
3 15 2 p1 Lio/vertx/core/Promise<Ljava/lang/Integer;>;
4 15 3 p2 Lio/vertx/core/Promise<Ljava/lang/Integer;>;
Exception table:
from to target type
5 9 10 any
10 11 10 any
Signature: (Lio/vertx/core/Future<Ljava/lang/Integer;>;)Lio/vertx/core/Future<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
future
protected void closeConnection();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
invokevirtual io.vertx.core.http.impl.Http1xServerConnection.channelHandlerContext:()Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.close:()Lio/netty/channel/ChannelFuture;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
protected void handleClose(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.http.impl.ServerWebSocketImpl.conn:Lio/vertx/core/http/impl/Http1xServerConnection;
getfield io.vertx.core.http.impl.Http1xServerConnection.metrics:Lio/vertx/core/spi/metrics/HttpServerMetrics;
astore 2
start local 2 1: getstatic io.vertx.core.spi.metrics.Metrics.METRICS_ENABLED:Z
ifeq 4
aload 2
ifnull 4
2: aload 2
aload 0
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.getMetric:()Ljava/lang/Object;
invokeinterface io.vertx.core.spi.metrics.HttpServerMetrics.disconnected:(Ljava/lang/Object;)V
3: aload 0
aconst_null
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.setMetric:(Ljava/lang/Object;)V
4: StackMap locals: io.vertx.core.spi.metrics.HttpServerMetrics
StackMap stack:
aload 0
iload 1
invokespecial io.vertx.core.http.impl.WebSocketImplBase.handleClose:(Z)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 6 1 graceful Z
1 6 2 metrics Lio/vertx/core/spi/metrics/HttpServerMetrics;
MethodParameters:
Name Flags
graceful
public io.vertx.core.http.ServerWebSocket frameHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.frameHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket writeFinalTextFrame(java.lang.String, io.vertx.core.Handler);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.writeFinalTextFrame:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket writeTextMessage(java.lang.String, io.vertx.core.Handler);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.writeTextMessage:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket setWriteQueueMaxSize(int);
descriptor: (I)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.setWriteQueueMaxSize:(I)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket exceptionHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket closeHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.closeHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket resume();
descriptor: ()Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.resume:()Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket writeFinalBinaryFrame(io.vertx.core.buffer.Buffer, io.vertx.core.Handler);
descriptor: (Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.writeFinalBinaryFrame:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket handler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.handler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket writeBinaryMessage(io.vertx.core.buffer.Buffer, io.vertx.core.Handler);
descriptor: (Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.writeBinaryMessage:(Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket writeFrame(io.vertx.core.http.WebSocketFrame, io.vertx.core.Handler);
descriptor: (Lio/vertx/core/http/WebSocketFrame;Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.writeFrame:(Lio/vertx/core/http/WebSocketFrame;Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket pause();
descriptor: ()Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.pause:()Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket endHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.endHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket drainHandler(io.vertx.core.Handler);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.drainHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.http.ServerWebSocket fetch(long);
descriptor: (J)Lio/vertx/core/http/ServerWebSocket;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
0: aload 0
lload 1
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.fetch:(J)Lio/vertx/core/http/WebSocketBase;
checkcast io.vertx.core.http.ServerWebSocket
areturn
LocalVariableTable:
Start End Slot Name Signature
private void lambda$0(io.vertx.core.Promise, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Promise;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.handleHandshake:(I)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
sipush 500
invokevirtual io.vertx.core.http.impl.ServerWebSocketImpl.handleHandshake:(I)V
4: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface io.vertx.core.Promise.handle:(Lio/vertx/core/AsyncResult;)V
5: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/http/impl/ServerWebSocketImpl;
0 6 2 ar Lio/vertx/core/AsyncResult<Ljava/lang/Integer;>;
}
Signature: Lio/vertx/core/http/impl/WebSocketImplBase<Lio/vertx/core/http/impl/ServerWebSocketImpl;>;Lio/vertx/core/http/ServerWebSocket;
SourceFile: "ServerWebSocketImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles