org.apache.maven.wagon.providers.ssh
Class ShellCommand

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.ShellCommand
All Implemented Interfaces:
org.apache.sshd.server.Command

public class ShellCommand
extends Object
implements org.apache.sshd.server.Command

Author:
Olivier Lamy

Field Summary
protected static int ERROR
           
protected static int OK
           
protected static int WARNING
           
 
Constructor Summary
ShellCommand(String commandLine)
           
 
Method Summary
 void destroy()
           
 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.Environment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

protected static final int OK
See Also:
Constant Field Values

WARNING

protected static final int WARNING
See Also:
Constant Field Values

ERROR

protected static final int ERROR
See Also:
Constant Field Values
Constructor Detail

ShellCommand

public ShellCommand(String commandLine)
Method Detail

setInputStream

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

setOutputStream

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

setErrorStream

public void setErrorStream(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 IOException
Specified by:
start in interface org.apache.sshd.server.Command
Throws:
IOException

destroy

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


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.