Package org.jline.builtins.ssh
Class ShellFactoryImpl
- java.lang.Object
-
- org.jline.builtins.ssh.ShellFactoryImpl
-
- All Implemented Interfaces:
org.apache.sshd.server.shell.ShellFactory
public class ShellFactoryImpl extends java.lang.Object implements org.apache.sshd.server.shell.ShellFactory
SSHDCommand
factory which provides access to Shell.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ShellFactoryImpl.ShellImpl
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Consumer<Ssh.ShellParams>
shell
-
Constructor Summary
Constructors Constructor Description ShellFactoryImpl(java.util.function.Consumer<Ssh.ShellParams> shell)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static void
close(java.io.Closeable... closeables)
org.apache.sshd.server.command.Command
createShell(org.apache.sshd.server.channel.ChannelSession session)
private static void
flush(java.io.OutputStream... streams)
-
-
-
Field Detail
-
shell
private final java.util.function.Consumer<Ssh.ShellParams> shell
-
-
Constructor Detail
-
ShellFactoryImpl
public ShellFactoryImpl(java.util.function.Consumer<Ssh.ShellParams> shell)
-
-
Method Detail
-
flush
private static void flush(java.io.OutputStream... streams)
-
close
static void close(java.io.Closeable... closeables)
-
createShell
public org.apache.sshd.server.command.Command createShell(org.apache.sshd.server.channel.ChannelSession session)
- Specified by:
createShell
in interfaceorg.apache.sshd.server.shell.ShellFactory
-
-