public class io.vertx.ext.shell.term.impl.TelnetTermServer implements io.vertx.ext.shell.term.TermServer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.shell.term.impl.TelnetTermServer
super_class: java.lang.Object
{
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.ext.shell.term.TelnetTermOptions options;
descriptor: Lio/vertx/ext/shell/term/TelnetTermOptions;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.vertx.core.Handler<io.vertx.ext.shell.term.Term> termHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/ext/shell/term/Term;>;
private io.vertx.core.net.NetServer server;
descriptor: Lio/vertx/core/net/NetServer;
flags: (0x0002) ACC_PRIVATE
public void <init>(io.vertx.core.Vertx, io.vertx.ext.shell.term.TelnetTermOptions);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/shell/term/TelnetTermOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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.shell.term.impl.TelnetTermServer.vertx:Lio/vertx/core/Vertx;
2: aload 0
new io.vertx.ext.shell.term.TelnetTermOptions
dup
aload 2
invokespecial io.vertx.ext.shell.term.TelnetTermOptions.<init>:(Lio/vertx/ext/shell/term/TelnetTermOptions;)V
putfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 options Lio/vertx/ext/shell/term/TelnetTermOptions;
MethodParameters:
Name Flags
vertx
options
public io.vertx.ext.shell.term.TermServer authProvider(io.vertx.ext.auth.AuthProvider);
descriptor: (Lio/vertx/ext/auth/AuthProvider;)Lio/vertx/ext/shell/term/TermServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
0 1 1 provider Lio/vertx/ext/auth/AuthProvider;
MethodParameters:
Name Flags
provider
public io.vertx.ext.shell.term.TermServer termHandler(io.vertx.core.Handler<io.vertx.ext.shell.term.Term>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/ext/shell/term/TermServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.ext.shell.term.impl.TelnetTermServer.termHandler:Lio/vertx/core/Handler;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
0 2 1 handler Lio/vertx/core/Handler<Lio/vertx/ext/shell/term/Term;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/ext/shell/term/Term;>;)Lio/vertx/ext/shell/term/TermServer;
MethodParameters:
Name Flags
handler
public io.vertx.ext.shell.term.TermServer listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/ext/shell/term/TermServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokevirtual io.vertx.ext.shell.term.TelnetTermOptions.getCharset:()Ljava/lang/String;
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 2
start local 2 1: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
ifnonnull 12
2: aload 0
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokeinterface io.vertx.core.Vertx.createNetServer:(Lio/vertx/core/net/NetServerOptions;)Lio/vertx/core/net/NetServer;
putfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
3: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokevirtual io.vertx.ext.shell.term.TelnetTermOptions.getIntputrc:()Ljava/lang/String;
invokestatic io.vertx.ext.shell.term.impl.Helper.loadResource:(Lio/vertx/core/file/FileSystem;Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
astore 3
start local 3 4: aload 3
ifnonnull 7
5: aload 1
new java.lang.StringBuilder
dup
ldc "Could not load inputrc from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokevirtual io.vertx.ext.shell.term.TelnetTermOptions.getIntputrc:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
6: aload 0
areturn
7: StackMap locals: java.nio.charset.Charset io.vertx.core.buffer.Buffer
StackMap stack:
new io.termd.core.readline.Keymap
dup
new java.io.ByteArrayInputStream
dup
aload 3
invokeinterface io.vertx.core.buffer.Buffer.getBytes:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokespecial io.termd.core.readline.Keymap.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 8: new io.vertx.ext.shell.term.impl.TermConnectionHandler
dup
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.vertx:Lio/vertx/core/Vertx;
aload 4
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.termHandler:Lio/vertx/core/Handler;
invokespecial io.vertx.ext.shell.term.impl.TermConnectionHandler.<init>:(Lio/vertx/core/Vertx;Lio/termd/core/readline/Keymap;Lio/vertx/core/Handler;)V
astore 5
start local 5 9: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
new io.vertx.ext.shell.term.impl.TelnetSocketHandler
dup
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.vertx:Lio/vertx/core/Vertx;
aload 0
aload 2
aload 5
invokedynamic get(Lio/vertx/ext/shell/term/impl/TelnetTermServer;Ljava/nio/charset/Charset;Lio/vertx/ext/shell/term/impl/TermConnectionHandler;)Ljava/util/function/Supplier;
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;
io/vertx/ext/shell/term/impl/TelnetTermServer.lambda$0(Ljava/nio/charset/Charset;Lio/vertx/ext/shell/term/impl/TermConnectionHandler;)Lio/termd/core/telnet/TelnetHandler; (7)
()Lio/termd/core/telnet/TelnetHandler;
invokespecial io.vertx.ext.shell.term.impl.TelnetSocketHandler.<init>:(Lio/vertx/core/Vertx;Ljava/util/function/Supplier;)V
invokeinterface io.vertx.core.net.NetServer.connectHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
pop
10: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
aload 1
invokedynamic handle(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/shell/term/impl/TelnetTermServer.lambda$2(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.net.NetServer.listen:(Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
pop
end local 5 end local 4 end local 3 11: goto 13
12: StackMap locals:
StackMap stack:
aload 1
ldc "Already started"
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
13: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
0 14 1 listenHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
1 14 2 charset Ljava/nio/charset/Charset;
4 11 3 inputrc Lio/vertx/core/buffer/Buffer;
8 11 4 keymap Lio/termd/core/readline/Keymap;
9 11 5 connectionHandler Lio/vertx/ext/shell/term/impl/TermConnectionHandler;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)Lio/vertx/ext/shell/term/TermServer;
MethodParameters:
Name Flags
listenHandler
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
ifnull 4
1: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
aload 1
invokeinterface io.vertx.core.net.NetServer.close:(Lio/vertx/core/Handler;)V
2: aload 0
aconst_null
putfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
3: goto 5
4: StackMap locals:
StackMap stack:
aload 1
ldc "No started"
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
0 6 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
completionHandler
public int actualPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.server:Lio/vertx/core/net/NetServer;
invokeinterface io.vertx.core.net.NetServer.actualPort:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
private io.termd.core.telnet.TelnetHandler lambda$0(java.nio.charset.Charset, io.vertx.ext.shell.term.impl.TermConnectionHandler);
descriptor: (Ljava/nio/charset/Charset;Lio/vertx/ext/shell/term/impl/TermConnectionHandler;)Lio/termd/core/telnet/TelnetHandler;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=3, args_size=3
start local 0 0: new io.termd.core.telnet.TelnetTtyConnection
dup
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokevirtual io.vertx.ext.shell.term.TelnetTermOptions.getInBinary:()Z
aload 0
getfield io.vertx.ext.shell.term.impl.TelnetTermServer.options:Lio/vertx/ext/shell/term/TelnetTermOptions;
invokevirtual io.vertx.ext.shell.term.TelnetTermOptions.getOutBinary:()Z
aload 1
aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Lio/vertx/ext/shell/term/impl/TermConnectionHandler;)Ljava/util/function/Consumer;
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/shell/term/impl/TermConnectionHandler.handle(Lio/termd/core/tty/TtyConnection;)V (5)
(Lio/termd/core/tty/TtyConnection;)V
invokespecial io.termd.core.telnet.TelnetTtyConnection.<init>:(ZZLjava/nio/charset/Charset;Ljava/util/function/Consumer;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/shell/term/impl/TelnetTermServer;
private static void lambda$2(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
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/core/net/NetServer;>;
}
SourceFile: "TelnetTermServer.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles