Package com.atlassian.bamboo.plugins.ssh
Class SshProxyCommand
- java.lang.Object
-
- com.atlassian.bamboo.plugins.ssh.SshProxyCommand
-
- 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
public class SshProxyCommand extends Object implements org.apache.sshd.server.command.Command
-
-
Field Summary
Fields Modifier and Type Field Description static String
BAMBOO_UNTRUSTED_KEY
-
Constructor Summary
Constructors Constructor Description SshProxyCommand(org.apache.sshd.client.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, String command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
BAMBOO_UNTRUSTED_KEY
public static final String BAMBOO_UNTRUSTED_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SshProxyCommand
public SshProxyCommand(org.apache.sshd.client.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, String command)
-
-
Method Detail
-
setInputStream
public void setInputStream(InputStream in)
- Specified by:
setInputStream
in interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
public void setOutputStream(OutputStream out)
- Specified by:
setOutputStream
in interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
public void setErrorStream(OutputStream err)
- 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
-
isChannelClosed
public boolean isChannelClosed()
-
start
public void start(org.apache.sshd.server.channel.ChannelSession serverSession, org.apache.sshd.server.Environment env) throws IOException
- Specified by:
start
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Throws:
IOException
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession serverSession)
- Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
-
-