org.crsh.command
Class BaseCommand

java.lang.Object
  extended by org.crsh.command.AbstractCommand
      extended by org.crsh.command.BaseCommand
Direct Known Subclasses:
GroovyCommand, help, repl

public abstract class BaseCommand
extends AbstractCommand


Field Summary
 Logger log
          Need to find a way to make not that public.
 String unmatched
          The unmatched text, only valid during an invocation - Need to find a way to make not that public.
 
Fields inherited from class org.crsh.command.AbstractCommand
context, out
 
Constructor Summary
protected BaseCommand()
           
 
Method Summary
 void execute(String s)
           
 String getUnmatched()
           
protected  String readLine(String msg)
           
protected  String readLine(String msg, boolean echo)
           
 
Methods inherited from class org.crsh.command.AbstractCommand
peekContext, popContext, pushContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public final Logger log
Need to find a way to make not that public.


unmatched

public String unmatched
The unmatched text, only valid during an invocation - Need to find a way to make not that public.

Constructor Detail

BaseCommand

protected BaseCommand()
Method Detail

readLine

protected final String readLine(String msg)
                         throws IOException,
                                InterruptedException
Throws:
IOException
InterruptedException

readLine

protected final String readLine(String msg,
                                boolean echo)
                         throws IOException,
                                InterruptedException
Throws:
IOException
InterruptedException

getUnmatched

public final String getUnmatched()

execute

public final void execute(String s)
                   throws IOException,
                          CommandException
Throws:
IOException
CommandException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.