class io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport extends io.vertx.ext.web.handler.sockjs.impl.BaseTransport
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport
super_class: io.vertx.ext.web.handler.sockjs.impl.BaseTransport
{
private static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/ext/web/handler/sockjs/impl/WebSocketTransport;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.vertx.core.Vertx, io.vertx.ext.web.Router, io.vertx.core.shareddata.LocalMap<java.lang.String, io.vertx.ext.web.handler.sockjs.impl.SockJSSession>, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions, io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket>);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/web/Router;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Lio/vertx/core/Handler;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 3
aload 4
invokespecial io.vertx.ext.web.handler.sockjs.impl.BaseTransport.<init>:(Lio/vertx/core/Vertx;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;)V
1: ldc "\\/[^\\/\\.]+\\/([^\\/\\.]+)\\/websocket"
astore 6
start local 6 2: aload 2
aload 6
invokeinterface io.vertx.ext.web.Router.getWithRegex:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 1
aload 3
aload 4
aload 5
invokedynamic handle(Lio/vertx/core/Vertx;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Lio/vertx/core/Handler;)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/ext/web/handler/sockjs/impl/WebSocketTransport.lambda$0(Lio/vertx/core/Vertx;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Lio/vertx/core/Handler;Lio/vertx/ext/web/RoutingContext;)V (6)
(Lio/vertx/ext/web/RoutingContext;)V
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
3: aload 2
aload 6
invokeinterface io.vertx.ext.web.Router.getWithRegex:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
invokedynamic handle()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/ext/web/handler/sockjs/impl/WebSocketTransport.lambda$1(Lio/vertx/ext/web/RoutingContext;)V (6)
(Lio/vertx/ext/web/RoutingContext;)V
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
4: aload 2
aload 6
invokeinterface io.vertx.ext.web.Router.routeWithRegex:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
invokedynamic handle()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/ext/web/handler/sockjs/impl/WebSocketTransport.lambda$2(Lio/vertx/ext/web/RoutingContext;)V (6)
(Lio/vertx/ext/web/RoutingContext;)V
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
5: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/web/handler/sockjs/impl/WebSocketTransport;
0 6 1 vertx Lio/vertx/core/Vertx;
0 6 2 router Lio/vertx/ext/web/Router;
0 6 3 sessions Lio/vertx/core/shareddata/LocalMap<Ljava/lang/String;Lio/vertx/ext/web/handler/sockjs/impl/SockJSSession;>;
0 6 4 options Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
0 6 5 sockHandler Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/SockJSSocket;>;
2 6 6 wsRE Ljava/lang/String;
Signature: (Lio/vertx/core/Vertx;Lio/vertx/ext/web/Router;Lio/vertx/core/shareddata/LocalMap<Ljava/lang/String;Lio/vertx/ext/web/handler/sockjs/impl/SockJSSession;>;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/SockJSSocket;>;)V
MethodParameters:
Name Flags
vertx
router
sessions
options
sockHandler
private static void lambda$0(io.vertx.core.Vertx, io.vertx.core.shareddata.LocalMap, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions, io.vertx.core.Handler, io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Lio/vertx/core/Handler;Lio/vertx/ext/web/RoutingContext;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=8, locals=9, args_size=5
start local 4 0: aload 4
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
astore 5
start local 5 1: aload 5
invokeinterface io.vertx.core.http.HttpServerRequest.headers:()Lio/vertx/core/MultiMap;
getstatic io.vertx.core.http.HttpHeaders.CONNECTION:Ljava/lang/CharSequence;
invokeinterface io.vertx.core.MultiMap.get:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 6
start local 6 2: aload 6
ifnull 3
aload 6
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "upgrade"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 6
3: StackMap locals: io.vertx.core.http.HttpServerRequest java.lang.String
StackMap stack:
aload 4
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
sipush 400
invokeinterface io.vertx.core.http.HttpServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
pop
4: aload 4
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
ldc "Can \"Upgrade\" only to \"WebSocket\"."
invokeinterface io.vertx.core.http.HttpServerResponse.end:(Ljava/lang/String;)V
5: goto 10
6: StackMap locals:
StackMap stack:
aload 4
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
invokeinterface io.vertx.core.http.HttpServerRequest.upgrade:()Lio/vertx/core/http/ServerWebSocket;
astore 7
start local 7 7: getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 8
getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
ldc "WS, handler"
invokevirtual io.vertx.core.logging.Logger.trace:(Ljava/lang/Object;)V
8: StackMap locals: io.vertx.core.http.ServerWebSocket
StackMap stack:
new io.vertx.ext.web.handler.sockjs.impl.SockJSSession
dup
aload 0
aload 1
aload 4
aload 2
invokevirtual io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions.getHeartbeatInterval:()J
aload 3
invokespecial io.vertx.ext.web.handler.sockjs.impl.SockJSSession.<init>:(Lio/vertx/core/Vertx;Lio/vertx/core/shareddata/LocalMap;Lio/vertx/ext/web/RoutingContext;JLio/vertx/core/Handler;)V
astore 8
start local 8 9: aload 8
aload 5
new io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport$WebSocketListener
dup
aload 7
aload 8
invokespecial io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport$WebSocketListener.<init>:(Lio/vertx/core/http/ServerWebSocket;Lio/vertx/ext/web/handler/sockjs/impl/SockJSSession;)V
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSSession.register:(Lio/vertx/core/http/HttpServerRequest;Lio/vertx/ext/web/handler/sockjs/impl/TransportListener;)V
end local 8 end local 7 end local 6 end local 5 10: StackMap locals:
StackMap stack:
return
end local 4 LocalVariableTable:
Start End Slot Name Signature
0 11 4 rc Lio/vertx/ext/web/RoutingContext;
1 10 5 req Lio/vertx/core/http/HttpServerRequest;
2 10 6 connectionHeader Ljava/lang/String;
7 10 7 ws Lio/vertx/core/http/ServerWebSocket;
9 10 8 session Lio/vertx/ext/web/handler/sockjs/impl/SockJSSession;
private static void lambda$1(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 1
getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "WS, get: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
invokeinterface io.vertx.core.http.HttpServerRequest.uri:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.trace:(Ljava/lang/Object;)V
1: StackMap locals:
StackMap stack:
aload 0
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
sipush 400
invokeinterface io.vertx.core.http.HttpServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
pop
2: aload 0
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
ldc "Can \"Upgrade\" only to \"WebSocket\"."
invokeinterface io.vertx.core.http.HttpServerResponse.end:(Ljava/lang/String;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 rc Lio/vertx/ext/web/RoutingContext;
private static void lambda$2(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 1
getstatic io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "WS, all: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
invokeinterface io.vertx.core.http.HttpServerRequest.uri:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.trace:(Ljava/lang/Object;)V
1: StackMap locals:
StackMap stack:
aload 0
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
ldc "Allow"
ldc "GET"
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
sipush 405
invokeinterface io.vertx.core.http.HttpServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
invokeinterface io.vertx.core.http.HttpServerResponse.end:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 rc Lio/vertx/ext/web/RoutingContext;
}
SourceFile: "WebSocketTransport.java"
NestMembers:
io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport$WebSocketListener
InnerClasses:
private WebSocketListener = io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport$WebSocketListener of io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles