org.apache.karaf.shell.console.jline
Class Console
java.lang.Object
org.apache.karaf.shell.console.jline.Console
- All Implemented Interfaces:
- Runnable
public class Console
- extends Object
- implements Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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.