com.atlassian.bamboo.plugins.hg.sshproxy
Class SshProxyCommand

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

public class SshProxyCommand
extends java.lang.Object
implements CloseableCommand


Constructor Summary
SshProxyCommand(org.apache.sshd.SshClient client, ProxyConnectionDataProvider proxyConnectionDataProvider, java.lang.String command)
           
 
Method Summary
 void close()
           
 void destroy()
           
 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

close

public void close()
Specified by:
close in interface CloseableCommand


Copyright © 2011 Atlassian. All Rights Reserved.