org.crsh.shell.impl.command
Class CRaSHCommandProcess
java.lang.Object
org.crsh.shell.impl.command.CRaSHProcess
org.crsh.shell.impl.command.CRaSHCommandProcess
- All Implemented Interfaces:
- ShellProcess
-
class CRaSHCommandProcess
- extends CRaSHProcess
-
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
private final CRaSHSession session
-
.
command
private final CommandInvoker<Void,?> command
-
.
CRaSHCommandProcess
public CRaSHCommandProcess(CRaSHSession session,
String request,
CommandInvoker<Void,?> command)
getKeyHandler
public KeyHandler getKeyHandler()
- Description copied from interface:
ShellProcess
-
Returns the key handler or null if the process won't handle key events.
-
- Specified by:
getKeyHandler
in interface ShellProcess
- Overrides:
getKeyHandler
in class CRaSHProcess
-
- Returns:
- the key handler for this process
doInvoke
ShellResponse doInvoke(ShellProcessContext context)
throws InterruptedException
-
- Specified by:
doInvoke
in class CRaSHProcess
-
- Throws:
InterruptedException
build
private ShellResponse.Error build(Throwable throwable)
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.