public class ShellCommand extends Object implements org.apache.sshd.server.Command
Modifier and Type | Field and Description |
---|---|
protected static int |
ERROR |
protected static int |
OK |
protected static int |
WARNING |
Constructor and Description |
---|
ShellCommand(String commandLine) |
Modifier and Type | Method and Description |
---|---|
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) |
protected static final int OK
protected static final int WARNING
protected static final int ERROR
public ShellCommand(String commandLine)
public void setInputStream(InputStream in)
setInputStream
in interface org.apache.sshd.server.Command
public void setOutputStream(OutputStream out)
setOutputStream
in interface org.apache.sshd.server.Command
public void setErrorStream(OutputStream err)
setErrorStream
in interface org.apache.sshd.server.Command
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback
in interface org.apache.sshd.server.Command
public void start(org.apache.sshd.server.Environment env) throws IOException
start
in interface org.apache.sshd.server.Command
IOException
public void destroy()
destroy
in interface org.apache.sshd.server.Command
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.