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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSshProxyCommand(org.apache.sshd.client.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, String command) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(org.apache.sshd.server.channel.ChannelSession serverSession) booleanvoidvoidsetExitCallback(org.apache.sshd.server.ExitCallback callback) voidvoidvoidstart(org.apache.sshd.server.channel.ChannelSession serverSession, org.apache.sshd.server.Environment env)
-
Field Details
-
BAMBOO_UNTRUSTED_KEY
- See Also:
-
-
Constructor Details
-
SshProxyCommand
public SshProxyCommand(org.apache.sshd.client.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, String command)
-
-
Method Details
-
setInputStream
- Specified by:
setInputStreamin interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- Specified by:
setOutputStreamin interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
- Specified by:
setErrorStreamin interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback) - Specified by:
setExitCallbackin 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:
startin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
IOException
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession serverSession) - Specified by:
destroyin interfaceorg.apache.sshd.server.command.CommandLifecycle
-