public class ServerAutomaton extends Object implements Shell
| Modifier and Type | Field and Description |
|---|---|
(package private) ObjectInputStream |
in
.
|
(package private) CloseableList |
listeners
.
|
(package private) Logger |
log
.
|
(package private) ObjectOutputStream |
out
.
|
(package private) ServerProcess |
process
.
|
| Constructor and Description |
|---|
ServerAutomaton(InputStream in,
OutputStream out) |
ServerAutomaton(ObjectOutputStream out,
ObjectInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
ServerAutomaton |
addCloseListener(Closeable closeable) |
(package private) void |
cancel(ServerProcess process) |
void |
close() |
CompletionMatch |
complete(String prefix)
Completion.
|
ShellProcess |
createProcess(String request)
Process a request.
|
(package private) void |
execute(ServerProcess process,
ShellProcessContext processContext) |
String |
getPrompt()
Returns the shell prompt.
|
String |
getWelcome()
Returns the welcome message.
|
final ObjectInputStream in
final ObjectOutputStream out
ServerProcess process
final CloseableList listeners
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 CompletionMatch complete(String prefix)
Shellpublic void close()
close in interface Closeableclose in interface AutoCloseablevoid execute(ServerProcess process, ShellProcessContext processContext) throws IllegalStateException
IllegalStateExceptionvoid cancel(ServerProcess process) throws IllegalStateException
IllegalStateExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.