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