public class MockSshShell extends Object implements org.apache.sshd.server.Command
| Modifier and Type | Class and Description |
|---|---|
class |
MockSshShell.MockShellEventLoop |
| Constructor and Description |
|---|
MockSshShell() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession() |
void |
destroy() |
ResponderDispatcher |
getDispatcher() |
protected List<String> |
readInput() |
void |
sendResponse(String output) |
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 void |
writeError(Exception e) |
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.Commandpublic void start(org.apache.sshd.server.Environment env)
throws IOException
start in interface org.apache.sshd.server.CommandIOExceptionpublic void destroy()
destroy in interface org.apache.sshd.server.Commandpublic void closeSession()
protected List<String> readInput() throws IOException
IOExceptionprotected void writeError(Exception e) throws IOException
IOExceptionpublic void sendResponse(String output)
public ResponderDispatcher getDispatcher()
Copyright © 2016. All rights reserved.