org.apache.karaf.shell.console.jline
Class Console

java.lang.Object
  extended by org.apache.karaf.shell.console.jline.Console
All Implemented Interfaces:
Runnable

public class Console
extends Object
implements Runnable


Field Summary
static String DEFAULT_PROMPT
           
static String IGNORE_INTERRUPTS
           
static String LAST_EXCEPTION
           
static String PRINT_STACK_TRACES
           
static String PROMPT
           
protected  org.apache.felix.service.command.CommandSession session
           
static String SHELL_INIT_SCRIPT
           
 
Constructor Summary
Console(org.apache.felix.service.command.CommandProcessor processor, InputStream in, PrintStream out, PrintStream err, jline.Terminal term, String encoding, Runnable closeCallback)
           
 
Method Summary
 void close(boolean closedByUser)
           
protected  Completer createCompleter()
           
protected  boolean getBoolean(String name)
           
protected  File getHistoryFile()
          Subclasses can override to use a different history file.
protected  String getPrompt()
           
 org.apache.felix.service.command.CommandSession getSession()
           
 void run()
           
protected  void setSessionProperties()
           
protected  void welcome()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHELL_INIT_SCRIPT

public static final String SHELL_INIT_SCRIPT
See Also:
Constant Field Values

PROMPT

public static final String PROMPT
See Also:
Constant Field Values

DEFAULT_PROMPT

public static final String DEFAULT_PROMPT
See Also:
Constant Field Values

PRINT_STACK_TRACES

public static final String PRINT_STACK_TRACES
See Also:
Constant Field Values

LAST_EXCEPTION

public static final String LAST_EXCEPTION
See Also:
Constant Field Values

IGNORE_INTERRUPTS

public static final String IGNORE_INTERRUPTS
See Also:
Constant Field Values

session

protected org.apache.felix.service.command.CommandSession session
Constructor Detail

Console

public Console(org.apache.felix.service.command.CommandProcessor processor,
               InputStream in,
               PrintStream out,
               PrintStream err,
               jline.Terminal term,
               String encoding,
               Runnable closeCallback)
        throws Exception
Throws:
Exception
Method Detail

getHistoryFile

protected File getHistoryFile()
Subclasses can override to use a different history file.

Returns:

getSession

public org.apache.felix.service.command.CommandSession getSession()

close

public void close(boolean closedByUser)

run

public void run()
Specified by:
run in interface Runnable

getBoolean

protected boolean getBoolean(String name)

welcome

protected void welcome()

setSessionProperties

protected void setSessionProperties()

createCompleter

protected Completer createCompleter()

getPrompt

protected String getPrompt()


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.