|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.server.command.UnknownCommand
public class UnknownCommand
Implementation of an unknown command that can be returned by CommandFactory
when the command is not known, as it is supposed to always
return a valid Command object.
| Constructor Summary | |
|---|---|
UnknownCommand(java.lang.String command)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy the shell. |
void |
setErrorStream(java.io.OutputStream err)
Set the error stream that can be used by the shell to write its errors. |
void |
setExitCallback(ExitCallback callback)
Set the callback that the shell has to call when it is closed. |
void |
setInputStream(java.io.InputStream in)
Set the input stream that can be used by the shell to read input. |
void |
setOutputStream(java.io.OutputStream out)
Set the output stream that can be used by the shell to write its output. |
void |
start(Environment env)
Starts the shell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnknownCommand(java.lang.String command)
| Method Detail |
|---|
public void setInputStream(java.io.InputStream in)
Command
setInputStream in interface Commandpublic void setOutputStream(java.io.OutputStream out)
Command
setOutputStream in interface Commandpublic void setErrorStream(java.io.OutputStream err)
Command
setErrorStream in interface Commandpublic void setExitCallback(ExitCallback callback)
Command
setExitCallback in interface Command
public void start(Environment env)
throws java.io.IOException
Command
start in interface Commandjava.io.IOExceptionpublic void destroy()
Command
destroy in interface Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||