Package org.jline.builtins.ssh
Class ShellCommand
java.lang.Object
org.jline.builtins.ssh.ShellCommand
- 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.sshd.server.ExitCallback
private final String
private org.apache.sshd.server.Environment
private OutputStream
private final Consumer
<Ssh.ExecuteParams> private InputStream
private static final Logger
private OutputStream
private org.apache.sshd.server.session.ServerSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(org.apache.sshd.server.channel.ChannelSession channel) private void
run()
void
void
setExitCallback
(org.apache.sshd.server.ExitCallback callback) void
void
void
start
(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)
-
Field Details
-
LOGGER
-
execute
-
command
-
in
-
out
-
err
-
callback
private org.apache.sshd.server.ExitCallback callback -
session
private org.apache.sshd.server.session.ServerSession session -
env
private org.apache.sshd.server.Environment env
-
-
Constructor Details
-
ShellCommand
-
-
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 channel, org.apache.sshd.server.Environment env) throws IOException - Specified by:
start
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Throws:
IOException
-
run
private void run() -
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession channel) - Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
-