public abstract class BaseCommand extends Object implements org.apache.sshd.server.Command
| Constructor and Description |
|---|
BaseCommand(SshdConfigInterface configInterface) |
| Modifier and Type | Method and Description |
|---|---|
void |
doClose() |
void |
doClose(Closeable... closeables) |
void |
doExit(int exitValue) |
void |
doExit(int exitValue,
String exitMessage) |
ConfigInterface |
getConfigInterface() |
org.apache.sshd.server.Environment |
getEnvironment() |
OutputStream |
getErrorStream() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
protected boolean |
handlePRTG(String line) |
void |
printLine(String line) |
void |
printLineError(String line) |
void |
setEnvironment(org.apache.sshd.server.Environment environment) |
void |
setErrorStream(OutputStream err) |
void |
setExitCallback(org.apache.sshd.server.ExitCallback callback) |
void |
setInputStream(InputStream in) |
void |
setOutputStream(OutputStream out) |
public BaseCommand(SshdConfigInterface configInterface)
public ConfigInterface getConfigInterface()
public void printLine(String line) throws IOException
IOExceptionpublic void printLineError(String line) throws IOException
IOExceptionpublic void doExit(int exitValue)
public void doClose()
public void doClose(Closeable... closeables)
public void doExit(int exitValue,
String exitMessage)
protected boolean handlePRTG(String line) throws IOException
IOExceptionpublic InputStream getInputStream()
public OutputStream getOutputStream()
public OutputStream getErrorStream()
public org.apache.sshd.server.Environment getEnvironment()
public void setEnvironment(org.apache.sshd.server.Environment environment)
public void setInputStream(InputStream in)
setInputStream in interface org.apache.sshd.server.Commandpublic void setOutputStream(OutputStream out)
setOutputStream in interface org.apache.sshd.server.Commandpublic void setErrorStream(OutputStream err)
setErrorStream in interface org.apache.sshd.server.Commandpublic void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback in interface org.apache.sshd.server.CommandCopyright © 2016. All rights reserved.