| Constructor and Description |
|---|
ServerAutomaton(java.io.InputStream in,
java.io.OutputStream out) |
ServerAutomaton(java.io.ObjectOutputStream out,
java.io.ObjectInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
ServerAutomaton |
addCloseListener(java.io.Closeable closeable) |
void |
close() |
org.crsh.cli.impl.completion.CompletionMatch |
complete(java.lang.String prefix)
Completion.
|
ShellProcess |
createProcess(java.lang.String request)
Process a request.
|
java.lang.String |
getPrompt()
Returns the shell prompt.
|
java.lang.String |
getWelcome()
Returns the welcome message.
|
public ServerAutomaton(java.io.ObjectOutputStream out,
java.io.ObjectInputStream in)
public ServerAutomaton(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic ServerAutomaton addCloseListener(java.io.Closeable closeable)
public java.lang.String getWelcome()
ShellgetWelcome in interface Shellpublic java.lang.String getPrompt()
Shellpublic ShellProcess createProcess(java.lang.String request) throws java.lang.IllegalStateException
ShellcreateProcess in interface Shellrequest - the request to processjava.lang.IllegalStateException - if the shell cannot create a processpublic org.crsh.cli.impl.completion.CompletionMatch complete(java.lang.String prefix)
Shellpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2014 eXo Platform SAS. All Rights Reserved.