Package org.jpos.q2.ssh
Class CliShellFactory
- java.lang.Object
-
- org.jpos.q2.ssh.CliShellFactory
-
- All Implemented Interfaces:
java.util.function.Supplier<org.apache.sshd.server.command.Command>
,org.apache.sshd.common.Factory<org.apache.sshd.server.command.Command>
,org.apache.sshd.server.command.CommandFactory
,org.apache.sshd.server.shell.ShellFactory
public class CliShellFactory extends java.lang.Object implements org.apache.sshd.common.Factory<org.apache.sshd.server.command.Command>, org.apache.sshd.server.command.CommandFactory, org.apache.sshd.server.shell.ShellFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CliShellFactory.JPosCLIShell
class
CliShellFactory.SshCLI
-
Constructor Summary
Constructors Constructor Description CliShellFactory(Q2 q2, java.lang.String[] prefixes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sshd.server.command.Command
create()
org.apache.sshd.server.command.Command
createCommand(org.apache.sshd.server.channel.ChannelSession channel, java.lang.String command)
org.apache.sshd.server.command.Command
createShell(org.apache.sshd.server.channel.ChannelSession channel)
-
-
-
Constructor Detail
-
CliShellFactory
public CliShellFactory(Q2 q2, java.lang.String[] prefixes)
-
-
Method Detail
-
create
public org.apache.sshd.server.command.Command create()
- Specified by:
create
in interfaceorg.apache.sshd.common.Factory<org.apache.sshd.server.command.Command>
-
createCommand
public org.apache.sshd.server.command.Command createCommand(org.apache.sshd.server.channel.ChannelSession channel, java.lang.String command)
- Specified by:
createCommand
in interfaceorg.apache.sshd.server.command.CommandFactory
-
createShell
public org.apache.sshd.server.command.Command createShell(org.apache.sshd.server.channel.ChannelSession channel)
- Specified by:
createShell
in interfaceorg.apache.sshd.server.shell.ShellFactory
-
-