org.crsh.shell.impl.command
Class CRaSHCommandProcess

java.lang.Object
  extended by org.crsh.shell.impl.command.CRaSHProcess
      extended by org.crsh.shell.impl.command.CRaSHCommandProcess
All Implemented Interfaces:
ShellProcess

 class CRaSHCommandProcess
extends CRaSHProcess

Author:
Julien Viet

Field Summary
private  CommandInvoker<Void,?> command
          .
private  CRaSHSession session
          .
 
Fields inherited from class org.crsh.shell.impl.command.CRaSHProcess
crash, request
 
Constructor Summary
CRaSHCommandProcess(CRaSHSession session, String request, CommandInvoker<Void,?> command)
           
 
Method Summary
private  ShellResponse.Error build(Throwable throwable)
           
(package private)  ShellResponse doInvoke(ShellProcessContext context)
           
 KeyHandler getKeyHandler()
          Returns the key handler or null if the process won't handle key events.
 
Methods inherited from class org.crsh.shell.impl.command.CRaSHProcess
cancel, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final CRaSHSession session
.


command

private final CommandInvoker<Void,?> command
.

Constructor Detail

CRaSHCommandProcess

public CRaSHCommandProcess(CRaSHSession session,
                           String request,
                           CommandInvoker<Void,?> command)
Method Detail

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.