public class SshProxyCommand extends Object implements org.apache.sshd.server.command.Command
Modifier and Type | Field and Description |
---|---|
static String |
BAMBOO_UNTRUSTED_KEY |
Constructor and Description |
---|
SshProxyCommand(org.apache.sshd.client.SshClient client,
ProxyConnectionDataProvider proxyConnectionDataProvider,
String command) |
Modifier and Type | Method and Description |
---|---|
void |
destroy(org.apache.sshd.server.channel.ChannelSession serverSession) |
boolean |
isChannelClosed() |
void |
setErrorStream(OutputStream err) |
void |
setExitCallback(org.apache.sshd.server.ExitCallback callback) |
void |
setInputStream(InputStream in) |
void |
setOutputStream(OutputStream out) |
void |
start(org.apache.sshd.server.channel.ChannelSession serverSession,
org.apache.sshd.server.Environment env) |
public static final String BAMBOO_UNTRUSTED_KEY
public SshProxyCommand(org.apache.sshd.client.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, String command)
public void setInputStream(InputStream in)
setInputStream
in interface org.apache.sshd.server.command.CommandDirectInputStreamAware
public void setOutputStream(OutputStream out)
setOutputStream
in interface org.apache.sshd.server.command.CommandDirectOutputStreamAware
public void setErrorStream(OutputStream err)
setErrorStream
in interface org.apache.sshd.server.command.CommandDirectErrorStreamAware
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback
in interface org.apache.sshd.server.command.Command
public boolean isChannelClosed()
public void start(org.apache.sshd.server.channel.ChannelSession serverSession, org.apache.sshd.server.Environment env) throws IOException
start
in interface org.apache.sshd.server.command.CommandLifecycle
IOException
public void destroy(org.apache.sshd.server.channel.ChannelSession serverSession)
destroy
in interface org.apache.sshd.server.command.CommandLifecycle
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.