public class examples.HTTPEndpointExamples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.HTTPEndpointExamples
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/HTTPEndpointExamples;
public void example1(io.vertx.servicediscovery.ServiceDiscovery);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: ldc "some-http-service"
1: ldc "localhost"
2: sipush 8433
3: ldc "/api"
4: invokestatic io.vertx.servicediscovery.types.HttpEndpoint.createRecord:(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Lio/vertx/servicediscovery/Record;
astore 2
start local 2 5: aload 1
aload 2
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
examples/HTTPEndpointExamples.lambda$0(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.servicediscovery.ServiceDiscovery.publish:(Lio/vertx/servicediscovery/Record;Lio/vertx/core/Handler;)V
6: ldc "some-other-name"
7: iconst_1
8: ldc "localhost"
9: sipush 8433
10: ldc "/api"
11: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "some-metadata"
ldc "some value"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
12: invokestatic io.vertx.servicediscovery.types.HttpEndpoint.createRecord:(Ljava/lang/String;ZLjava/lang/String;ILjava/lang/String;Lio/vertx/core/json/JsonObject;)Lio/vertx/servicediscovery/Record;
pop
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lexamples/HTTPEndpointExamples;
0 14 1 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
5 14 2 record1 Lio/vertx/servicediscovery/Record;
MethodParameters:
Name Flags
discovery
public void example2(io.vertx.servicediscovery.ServiceDiscovery);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "some-http-service"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
aload 1
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;)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
examples/HTTPEndpointExamples.lambda$1(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.servicediscovery.ServiceDiscovery.getRecord:(Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/HTTPEndpointExamples;
0 2 1 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
MethodParameters:
Name Flags
discovery
public void example2_webclient(io.vertx.servicediscovery.ServiceDiscovery);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "some-http-service"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
aload 1
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;)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
examples/HTTPEndpointExamples.lambda$3(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.servicediscovery.ServiceDiscovery.getRecord:(Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/HTTPEndpointExamples;
0 2 1 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
MethodParameters:
Name Flags
discovery
public void example3(io.vertx.servicediscovery.ServiceDiscovery);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "some-http-service"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
aload 1
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;)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
examples/HTTPEndpointExamples.lambda$5(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokestatic io.vertx.servicediscovery.types.HttpEndpoint.getClient:(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/HTTPEndpointExamples;
0 2 1 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
MethodParameters:
Name Flags
discovery
public void example3_webclient(io.vertx.servicediscovery.ServiceDiscovery);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "name"
ldc "some-http-service"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
aload 1
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;)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
examples/HTTPEndpointExamples.lambda$7(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokestatic io.vertx.servicediscovery.types.HttpEndpoint.getWebClient:(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/HTTPEndpointExamples;
0 2 1 discovery Lio/vertx/servicediscovery/ServiceDiscovery;
MethodParameters:
Name Flags
discovery
private static void lambda$0(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ar Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;
private static void lambda$1(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 4
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
ifnull 4
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.servicediscovery.Record
invokeinterface io.vertx.servicediscovery.ServiceDiscovery.getReference:(Lio/vertx/servicediscovery/Record;)Lio/vertx/servicediscovery/ServiceReference;
astore 2
start local 2 2: aload 2
ldc Lio/vertx/core/http/HttpClient;
invokeinterface io.vertx.servicediscovery.ServiceReference.getAs:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast io.vertx.core.http.HttpClient
astore 3
start local 3 3: aload 3
ldc "/api/persons"
aload 2
invokedynamic handle(Lio/vertx/servicediscovery/ServiceReference;)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
examples/HTTPEndpointExamples.lambda$2(Lio/vertx/servicediscovery/ServiceReference;Lio/vertx/core/http/HttpClientResponse;)V (6)
(Lio/vertx/core/http/HttpClientResponse;)V
invokeinterface io.vertx.core.http.HttpClient.getNow:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpClient;
pop
end local 3 end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 ar Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;
2 4 2 reference Lio/vertx/servicediscovery/ServiceReference;
3 4 3 client Lio/vertx/core/http/HttpClient;
private static void lambda$3(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 6
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
ifnull 6
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.servicediscovery.Record
invokeinterface io.vertx.servicediscovery.ServiceDiscovery.getReference:(Lio/vertx/servicediscovery/Record;)Lio/vertx/servicediscovery/ServiceReference;
astore 2
start local 2 2: aload 2
ldc Lio/vertx/ext/web/client/WebClient;
invokeinterface io.vertx.servicediscovery.ServiceReference.getAs:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast io.vertx.ext.web.client.WebClient
astore 3
start local 3 3: aload 3
ldc "/api/persons"
invokeinterface io.vertx.ext.web.client.WebClient.get:(Ljava/lang/String;)Lio/vertx/ext/web/client/HttpRequest;
4: aload 2
invokedynamic handle(Lio/vertx/servicediscovery/ServiceReference;)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
examples/HTTPEndpointExamples.lambda$4(Lio/vertx/servicediscovery/ServiceReference;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
5: invokeinterface io.vertx.ext.web.client.HttpRequest.send:(Lio/vertx/core/Handler;)V
end local 3 end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 7 1 ar Lio/vertx/core/AsyncResult<Lio/vertx/servicediscovery/Record;>;
2 6 2 reference Lio/vertx/servicediscovery/ServiceReference;
3 6 3 client Lio/vertx/ext/web/client/WebClient;
private static void lambda$5(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.core.http.HttpClient
astore 2
start local 2 2: aload 2
ldc "/api/persons"
aload 0
aload 2
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/http/HttpClient;)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
examples/HTTPEndpointExamples.lambda$6(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/http/HttpClient;Lio/vertx/core/http/HttpClientResponse;)V (6)
(Lio/vertx/core/http/HttpClientResponse;)V
invokeinterface io.vertx.core.http.HttpClient.getNow:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpClient;
pop
end local 2 3: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 4 1 ar Lio/vertx/core/AsyncResult<Lio/vertx/core/http/HttpClient;>;
2 3 2 client Lio/vertx/core/http/HttpClient;
private static void lambda$7(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 4
1: aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.ext.web.client.WebClient
astore 2
start local 2 2: aload 2
ldc "/api/persons"
invokeinterface io.vertx.ext.web.client.WebClient.get:(Ljava/lang/String;)Lio/vertx/ext/web/client/HttpRequest;
3: aload 0
aload 2
invokedynamic handle(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/ext/web/client/WebClient;)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
examples/HTTPEndpointExamples.lambda$8(Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/ext/web/client/WebClient;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.ext.web.client.HttpRequest.send:(Lio/vertx/core/Handler;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 ar Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/client/WebClient;>;
2 4 2 client Lio/vertx/ext/web/client/WebClient;
private static void lambda$2(io.vertx.servicediscovery.ServiceReference, io.vertx.core.http.HttpClientResponse);
descriptor: (Lio/vertx/servicediscovery/ServiceReference;Lio/vertx/core/http/HttpClientResponse;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
invokeinterface io.vertx.servicediscovery.ServiceReference.release:()V
1: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 response Lio/vertx/core/http/HttpClientResponse;
private static void lambda$4(io.vertx.servicediscovery.ServiceReference, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceReference;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
invokeinterface io.vertx.servicediscovery.ServiceReference.release:()V
1: return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 response Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/client/HttpResponse<Lio/vertx/core/buffer/Buffer;>;>;
private static void lambda$6(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.core.http.HttpClient, io.vertx.core.http.HttpClientResponse);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/core/http/HttpClient;Lio/vertx/core/http/HttpClientResponse;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 1
invokestatic io.vertx.servicediscovery.ServiceDiscovery.releaseServiceObject:(Lio/vertx/servicediscovery/ServiceDiscovery;Ljava/lang/Object;)V
1: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 2 2 response Lio/vertx/core/http/HttpClientResponse;
private static void lambda$8(io.vertx.servicediscovery.ServiceDiscovery, io.vertx.ext.web.client.WebClient, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/servicediscovery/ServiceDiscovery;Lio/vertx/ext/web/client/WebClient;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 1
invokestatic io.vertx.servicediscovery.ServiceDiscovery.releaseServiceObject:(Lio/vertx/servicediscovery/ServiceDiscovery;Ljava/lang/Object;)V
1: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 2 2 response Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/client/HttpResponse<Lio/vertx/core/buffer/Buffer;>;>;
}
SourceFile: "HTTPEndpointExamples.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles