com.atlassian.bamboo.plugins.ssh
Class SshProxyCommand

java.lang.Object
  extended by com.atlassian.bamboo.plugins.ssh.SshProxyCommand
All Implemented Interfaces:
SshMessageHandler, org.apache.sshd.server.Command

public class SshProxyCommand
extends java.lang.Object
implements org.apache.sshd.server.Command, SshMessageHandler


Constructor Summary
SshProxyCommand(org.apache.sshd.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, java.lang.String command)
           
 
Method Summary
 void destroy()
           
 void onClose()
           
 void onEof()
           
 void setErrorStream(java.io.OutputStream err)
           
 void setExitCallback(org.apache.sshd.server.ExitCallback callback)
           
 void setInputStream(java.io.InputStream in)
           
 void setOutputStream(java.io.OutputStream out)
           
 void start(org.apache.sshd.server.Environment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshProxyCommand

public SshProxyCommand(org.apache.sshd.SshClient client,
                       ProxyConnectionDataProvider proxyConnectionDataProvider,
                       java.lang.String command)
Method Detail

setInputStream

public void setInputStream(java.io.InputStream in)
Specified by:
setInputStream in interface org.apache.sshd.server.Command

setOutputStream

public void setOutputStream(java.io.OutputStream out)
Specified by:
setOutputStream in interface org.apache.sshd.server.Command

setErrorStream

public void setErrorStream(java.io.OutputStream err)
Specified by:
setErrorStream in interface org.apache.sshd.server.Command

setExitCallback

public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
Specified by:
setExitCallback in interface org.apache.sshd.server.Command

start

public void start(org.apache.sshd.server.Environment env)
           throws java.io.IOException
Specified by:
start in interface org.apache.sshd.server.Command
Throws:
java.io.IOException

destroy

public void destroy()
Specified by:
destroy in interface org.apache.sshd.server.Command

onEof

public void onEof()
           throws java.io.IOException
Specified by:
onEof in interface SshMessageHandler
Throws:
java.io.IOException

onClose

public void onClose()
Specified by:
onClose in interface SshMessageHandler


Copyright © 2012 Atlassian. All Rights Reserved.