Package org.jline.builtins.ssh
Class ShellFactoryImpl.ShellImpl
java.lang.Object
org.jline.builtins.ssh.ShellFactoryImpl.ShellImpl
- All Implemented Interfaces:
org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandDirectErrorStreamAware
,org.apache.sshd.server.command.CommandDirectInputStreamAware
,org.apache.sshd.server.command.CommandDirectOutputStreamAware
,org.apache.sshd.server.command.CommandDirectStreamsAware
,org.apache.sshd.server.command.CommandLifecycle
- Enclosing class:
ShellFactoryImpl
public class ShellFactoryImpl.ShellImpl
extends Object
implements org.apache.sshd.server.command.Command
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(org.apache.sshd.server.channel.ChannelSession session) void
run
(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) void
void
setExitCallback
(org.apache.sshd.server.ExitCallback callback) void
void
void
start
(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env)
-
Constructor Details
-
ShellImpl
public ShellImpl()
-
-
Method Details
-
setInputStream
- Specified by:
setInputStream
in interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- Specified by:
setOutputStream
in interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
- Specified by:
setErrorStream
in interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback) - Specified by:
setExitCallback
in interfaceorg.apache.sshd.server.command.Command
-
start
public void start(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) throws IOException - Specified by:
start
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Throws:
IOException
-
run
public void run(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) throws Exception - Throws:
Exception
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession session) - Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
-