public class io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl implements io.vertx.ext.web.handler.sockjs.SockJSHandler, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl
super_class: java.lang.Object
{
private static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0002) ACC_PRIVATE
private io.vertx.ext.web.Router router;
descriptor: Lio/vertx/ext/web/Router;
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.shareddata.LocalMap<java.lang.String, io.vertx.ext.web.handler.sockjs.impl.SockJSSession> sessions;
descriptor: Lio/vertx/core/shareddata/LocalMap;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/shareddata/LocalMap<Ljava/lang/String;Lio/vertx/ext/web/handler/sockjs/impl/SockJSSession;>;
private io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions options;
descriptor: Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String IFRAME_TEMPLATE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "<!DOCTYPE html>\n<html>\n<head>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <script src=\"{{ sockjs_url }}\"></script>\n <script>\n document.domain = document.domain;\n SockJS.bootstrap_iframe();\n </script>\n</head>\n<body>\n <h2>Don't panic!</h2>\n <p>This is a SockJS hidden iframe. It's used for cross domain magic.</p>\n</body>\n</html>"
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/SockJSHandlerImpl;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.vertx.core.Vertx, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
2: aload 0
aload 1
invokeinterface io.vertx.core.Vertx.sharedData:()Lio/vertx/core/shareddata/SharedData;
ldc "_vertx.sockjssessions"
invokeinterface io.vertx.core.shareddata.SharedData.getLocalMap:(Ljava/lang/String;)Lio/vertx/core/shareddata/LocalMap;
putfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
3: aload 0
aload 1
invokestatic io.vertx.ext.web.Router.router:(Lio/vertx/core/Vertx;)Lio/vertx/ext/web/Router;
putfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
4: aload 0
aload 2
putfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
5: return
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/SockJSHandlerImpl;
0 6 1 vertx Lio/vertx/core/Vertx;
0 6 2 options Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
MethodParameters:
Name Flags
vertx
options
public void handle(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 2
1: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Got request in sockjs server: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 1
invokeinterface io.vertx.ext.web.Router.handleContext:(Lio/vertx/ext/web/RoutingContext;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
0 4 1 context Lio/vertx/ext/web/RoutingContext;
MethodParameters:
Name Flags
context
public io.vertx.ext.web.handler.sockjs.SockJSHandler bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions);
descriptor: (Lio/vertx/ext/web/handler/sockjs/BridgeOptions;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.bridge:(Lio/vertx/ext/web/handler/sockjs/BridgeOptions;Lio/vertx/core/Handler;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
0 1 1 bridgeOptions Lio/vertx/ext/web/handler/sockjs/BridgeOptions;
MethodParameters:
Name Flags
bridgeOptions
public io.vertx.ext.web.handler.sockjs.SockJSHandler bridge(io.vertx.ext.web.handler.sockjs.BridgeOptions, io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.BridgeEvent>);
descriptor: (Lio/vertx/ext/web/handler/sockjs/BridgeOptions;Lio/vertx/core/Handler;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new io.vertx.ext.web.handler.sockjs.impl.EventBusBridgeImpl
dup
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 1
aload 2
invokespecial io.vertx.ext.web.handler.sockjs.impl.EventBusBridgeImpl.<init>:(Lio/vertx/core/Vertx;Lio/vertx/ext/web/handler/sockjs/BridgeOptions;Lio/vertx/core/Handler;)V
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.socketHandler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
pop
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
0 2 1 bridgeOptions Lio/vertx/ext/web/handler/sockjs/BridgeOptions;
0 2 2 bridgeEventHandler Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/BridgeEvent;>;
Signature: (Lio/vertx/ext/web/handler/sockjs/BridgeOptions;Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/BridgeEvent;>;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
MethodParameters:
Name Flags
bridgeOptions
bridgeEventHandler
public io.vertx.ext.web.handler.sockjs.SockJSHandler socketHandler(io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/"
invokeinterface io.vertx.ext.web.Router.route:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
iconst_0
invokeinterface io.vertx.ext.web.Route.useNormalisedPath:(Z)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/SockJSHandlerImpl.lambda$0(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
1: ldc "<!DOCTYPE html>\n<html>\n<head>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <script src=\"{{ sockjs_url }}\"></script>\n <script>\n document.domain = document.domain;\n SockJS.bootstrap_iframe();\n </script>\n</head>\n<body>\n <h2>Don't panic!</h2>\n <p>This is a SockJS hidden iframe. It's used for cross domain magic.</p>\n</body>\n</html>"
ldc "{{ sockjs_url }}"
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
invokevirtual io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions.getLibraryURL:()Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 2
start local 2 2: aload 0
aload 2
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.createIFrameHandler:(Ljava/lang/String;)Lio/vertx/core/Handler;
astore 3
start local 3 3: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/iframe.html"
invokeinterface io.vertx.ext.web.Router.get:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 3
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
4: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "\\/iframe-[^\\/]*\\.html"
invokeinterface io.vertx.ext.web.Router.getWithRegex:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 3
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
5: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/chunking_test"
invokeinterface io.vertx.ext.web.Router.post:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 0
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.createChunkingTestHandler:()Lio/vertx/core/Handler;
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
6: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/chunking_test"
invokeinterface io.vertx.ext.web.Router.options:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
ldc "OPTIONS, POST"
invokestatic io.vertx.ext.web.handler.sockjs.impl.BaseTransport.createCORSOptionsHandler:(Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Ljava/lang/String;)Lio/vertx/core/Handler;
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
7: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/info"
invokeinterface io.vertx.ext.web.Router.get:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
invokestatic io.vertx.ext.web.handler.sockjs.impl.BaseTransport.createInfoHandler:(Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;)Lio/vertx/core/Handler;
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
8: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
ldc "/info"
invokeinterface io.vertx.ext.web.Router.options:(Ljava/lang/String;)Lio/vertx/ext/web/Route;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
ldc "OPTIONS, GET"
invokestatic io.vertx.ext.web.handler.sockjs.impl.BaseTransport.createCORSOptionsHandler:(Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;Ljava/lang/String;)Lio/vertx/core/Handler;
invokeinterface io.vertx.ext.web.Route.handler:(Lio/vertx/core/Handler;)Lio/vertx/ext/web/Route;
pop
9: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 4
start local 4 10: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.EVENT_SOURCE:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.HTML_FILE:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.JSON_P:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
13: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.WEBSOCKET:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
14: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.XHR:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
15: aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
invokevirtual io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions.getDisabledTransports:()Ljava/util/Set;
astore 5
start local 5 16: aload 5
ifnonnull 18
17: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 5
18: StackMap locals: io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl io.vertx.core.Handler java.lang.String io.vertx.core.Handler java.util.Set java.util.Set
StackMap stack:
aload 4
aload 5
invokeinterface java.util.Set.removeAll:(Ljava/util/Collection;)Z
pop
19: aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.XHR:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 21
20: new io.vertx.ext.web.handler.sockjs.impl.XhrTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.XhrTransport.<init>:(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
21: StackMap locals:
StackMap stack:
aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.EVENT_SOURCE:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 23
22: new io.vertx.ext.web.handler.sockjs.impl.EventSourceTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.EventSourceTransport.<init>:(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
23: StackMap locals:
StackMap stack:
aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.HTML_FILE:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 25
24: new io.vertx.ext.web.handler.sockjs.impl.HtmlFileTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.HtmlFileTransport.<init>:(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
25: StackMap locals:
StackMap stack:
aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.JSON_P:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 27
26: new io.vertx.ext.web.handler.sockjs.impl.JsonPTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.JsonPTransport.<init>:(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
27: StackMap locals:
StackMap stack:
aload 4
getstatic io.vertx.ext.web.handler.sockjs.Transport.WEBSOCKET:Lio/vertx/ext/web/handler/sockjs/Transport;
invokevirtual io.vertx.ext.web.handler.sockjs.Transport.toString:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 30
28: new io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.sessions:Lio/vertx/core/shareddata/LocalMap;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.options:Lio/vertx/ext/web/handler/sockjs/SockJSHandlerOptions;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.WebSocketTransport.<init>:(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
29: new io.vertx.ext.web.handler.sockjs.impl.RawWebSocketTransport
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.router:Lio/vertx/ext/web/Router;
aload 1
invokespecial io.vertx.ext.web.handler.sockjs.impl.RawWebSocketTransport.<init>:(Lio/vertx/core/Vertx;Lio/vertx/ext/web/Router;Lio/vertx/core/Handler;)V
30: StackMap locals:
StackMap stack:
aload 0
areturn
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 31 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
0 31 1 sockHandler Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/SockJSSocket;>;
2 31 2 iframeHTML Ljava/lang/String;
3 31 3 iframeHandler Lio/vertx/core/Handler<Lio/vertx/ext/web/RoutingContext;>;
10 31 4 enabledTransports Ljava/util/Set<Ljava/lang/String;>;
16 31 5 disabledTransports Ljava/util/Set<Ljava/lang/String;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/ext/web/handler/sockjs/SockJSSocket;>;)Lio/vertx/ext/web/handler/sockjs/SockJSHandler;
MethodParameters:
Name Flags
sockHandler
private io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createChunkingTestHandler();
descriptor: ()Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl$1
dup
aload 0
invokespecial io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl$1.<init>:(Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
Signature: ()Lio/vertx/core/Handler<Lio/vertx/ext/web/RoutingContext;>;
private io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createIFrameHandler(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.getMD5String:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
aload 1
invokedynamic handle(Ljava/lang/String;Ljava/lang/String;)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/SockJSHandlerImpl.lambda$1(Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/web/RoutingContext;)V (6)
(Lio/vertx/ext/web/RoutingContext;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/handler/sockjs/impl/SockJSHandlerImpl;
0 2 1 iframeHTML Ljava/lang/String;
1 2 2 etag Ljava/lang/String;
Signature: (Ljava/lang/String;)Lio/vertx/core/Handler<Lio/vertx/ext/web/RoutingContext;>;
MethodParameters:
Name Flags
iframeHTML
private static java.lang.String getMD5String(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: ldc "MD5"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 1
start local 1 1: aload 1
aload 0
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 2
start local 2 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 3: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 7
StackMap locals: java.lang.String java.security.MessageDigest byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
4: aload 7
iload 5
baload
istore 4
start local 4 5: aload 3
iload 4
bipush 127
iadd
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 6
if_icmplt 4
8: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: areturn
end local 3 end local 2 end local 1 10: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
pop
11: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
ldc "Failed to generate MD5 for iframe, If-None-Match headers will be ignored"
invokevirtual io.vertx.core.logging.Logger.error:(Ljava/lang/Object;)V
12: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 str Ljava/lang/String;
1 10 1 md Ljava/security/MessageDigest;
2 10 2 bytes [B
3 10 3 sb Ljava/lang/StringBuilder;
5 6 4 b B
Exception table:
from to target type
0 9 10 Class java.lang.Exception
MethodParameters:
Name Flags
str
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.ext.web.RoutingContext
invokevirtual io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.handle:(Lio/vertx/ext/web/RoutingContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 1
getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
ldc "Returning welcome response"
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 "Content-Type"
ldc "text/plain; charset=UTF-8"
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
ldc "Welcome to SockJS!\n"
invokeinterface io.vertx.core.http.HttpServerResponse.end:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 rc Lio/vertx/ext/web/RoutingContext;
private static void lambda$1(java.lang.String, java.lang.String, io.vertx.ext.web.RoutingContext);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/web/RoutingContext;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=6, args_size=3
start local 2 0: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isTraceEnabled:()Z
ifeq 1
getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
ldc "In Iframe handler"
invokevirtual io.vertx.core.logging.Logger.trace:(Ljava/lang/Object;)V
1: StackMap locals:
StackMap stack:
aload 0
ifnull 5
aload 0
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
ldc "if-none-match"
invokeinterface io.vertx.core.http.HttpServerRequest.getHeader:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
sipush 304
invokeinterface io.vertx.core.http.HttpServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
pop
3: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
invokeinterface io.vertx.core.http.HttpServerResponse.end:()V
4: goto 13
5: StackMap locals:
StackMap stack:
ldc 31536000000
lstore 3
start local 3 6: new java.text.SimpleDateFormat
dup
ldc "EEE, dd MMM yyyy HH:mm:ss zzz"
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
new java.util.Date
dup
invokestatic java.lang.System.currentTimeMillis:()J
lload 3
ladd
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
astore 5
start local 5 7: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
ldc "Content-Type"
ldc "text/html; charset=UTF-8"
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
8: ldc "Cache-Control"
ldc "public,max-age=31536000"
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
9: ldc "Expires"
aload 5
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
ldc "ETag"
aload 0
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/http/HttpServerResponse;
aload 1
invokeinterface io.vertx.core.http.HttpServerResponse.end:(Ljava/lang/String;)V
end local 5 end local 3 10: goto 13
StackMap locals:
StackMap stack: java.lang.Exception
11: astore 3
start local 3 12: getstatic io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl.log:Lio/vertx/core/logging/Logger;
ldc "Failed to server iframe"
aload 3
invokevirtual io.vertx.core.logging.Logger.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 13: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 14 2 rc Lio/vertx/ext/web/RoutingContext;
6 10 3 oneYear J
7 10 5 expires Ljava/lang/String;
12 13 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 10 11 Class java.lang.Exception
}
Signature: Ljava/lang/Object;Lio/vertx/ext/web/handler/sockjs/SockJSHandler;Lio/vertx/core/Handler<Lio/vertx/ext/web/RoutingContext;>;
SourceFile: "SockJSHandlerImpl.java"
NestMembers:
io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl$1 io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl$1$TimeoutInfo
InnerClasses:
io.vertx.ext.web.handler.sockjs.impl.SockJSHandlerImpl$1
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles