public class ServerProcess extends Object implements ShellProcess
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
line
.
|
(package private) ServerAutomaton |
server
.
|
private int |
status
.
|
| Constructor and Description |
|---|
ServerProcess(ServerAutomaton server,
String line) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Signals the process it should be cancelled.
|
void |
execute(ShellProcessContext processContext)
Begin the process.
|
KeyHandler |
getKeyHandler()
Returns the key handler or null if the process won't handle key events.
|
final ServerAutomaton server
private int status
ServerProcess(ServerAutomaton server, String line)
public void execute(ShellProcessContext processContext) throws IllegalStateException
ShellProcessShellProcessContext.end(ShellResponse) method.execute in interface ShellProcessprocessContext - the process contextIllegalStateException - if the process is already executing or has been executedpublic KeyHandler getKeyHandler()
ShellProcessgetKeyHandler in interface ShellProcesspublic void cancel()
ShellProcessShellProcessContext.end(ShellResponse) method.cancel in interface ShellProcessCopyright © 2015 eXo Platform SAS. All Rights Reserved.