| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PROMPT |
static String |
PROMPT |
protected org.apache.felix.service.command.CommandSession |
session |
static String |
SHELL_HISTORY_MAXSIZE |
static String |
SHELL_INIT_SCRIPT |
protected org.apache.felix.service.threadio.ThreadIO |
threadIO |
| Constructor and Description |
|---|
ConsoleImpl(org.apache.felix.service.command.CommandProcessor processor,
org.apache.felix.service.threadio.ThreadIO threadIO,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal term,
String encoding,
Runnable closeCallback,
org.osgi.framework.BundleContext bc,
boolean secured) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean closedByUser) |
protected CommandsCompleter |
createCompleter() |
protected File |
getHistoryFile()
Subclasses can override to use a different history file.
|
protected String |
getPrompt() |
org.apache.felix.service.command.CommandSession |
getSession() |
boolean |
isSecured() |
void |
run() |
protected void |
setSessionProperties(Properties brandingProps) |
protected void |
welcome(Properties brandingProps) |
public static final String SHELL_INIT_SCRIPT
public static final String SHELL_HISTORY_MAXSIZE
public static final String PROMPT
public static final String DEFAULT_PROMPT
protected org.apache.felix.service.command.CommandSession session
protected org.apache.felix.service.threadio.ThreadIO threadIO
public ConsoleImpl(org.apache.felix.service.command.CommandProcessor processor,
org.apache.felix.service.threadio.ThreadIO threadIO,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal term,
String encoding,
Runnable closeCallback,
org.osgi.framework.BundleContext bc,
boolean secured)
protected File getHistoryFile()
public boolean isSecured()
public org.apache.felix.service.command.CommandSession getSession()
getSession in interface Consoleprotected void welcome(Properties brandingProps)
protected void setSessionProperties(Properties brandingProps)
protected CommandsCompleter createCompleter()
protected String getPrompt()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.