|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<String,Object> org.crsh.shell.impl.command.CRaSHSession
class CRaSHSession
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
(package private) static Logger |
accessLog
. |
CRaSH |
crash
. |
(package private) static Logger |
log
. |
private Repl |
repl
. |
(package private) Principal |
user
. |
Constructor Summary | |
---|---|
CRaSHSession(CRaSH crash,
Principal user)
|
Method Summary | |
---|---|
void |
close()
|
CompletionMatch |
complete(String prefix)
For now basic implementation |
ShellProcess |
createProcess(String request)
Process a request. |
Map<String,Object> |
getAttributes()
Returns the current attributes. |
Command<?> |
getCommand(String name)
|
Iterable<Map.Entry<String,String>> |
getCommands()
|
PluginContext |
getContext()
|
String |
getPrompt()
Returns the shell prompt. |
Repl |
getRepl()
|
Map<String,Object> |
getSession()
Returns the current session. |
String |
getWelcome()
Returns the welcome message. |
(package private) ClassLoader |
setCRaSHLoader()
|
(package private) void |
setPreviousLoader(ClassLoader previous)
|
void |
setRepl(Repl repl)
Set the current repl of this session. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Field Detail |
---|
static final Logger log
static final Logger accessLog
public final CRaSH crash
final Principal user
private Repl repl
Constructor Detail |
---|
CRaSHSession(CRaSH crash, Principal user)
Method Detail |
---|
public Repl getRepl()
getRepl
in interface ShellSession
public void setRepl(Repl repl) throws NullPointerException
ShellSession
setRepl
in interface ShellSession
repl
- the new repl
NullPointerException
- if the repl is nullpublic Iterable<Map.Entry<String,String>> getCommands()
getCommands
in interface ShellSession
public Command<?> getCommand(String name) throws CommandException
getCommand
in interface ShellSession
CommandException
public PluginContext getContext()
getContext
in interface ShellSession
public Map<String,Object> getSession()
RuntimeContext
getSession
in interface RuntimeContext
public Map<String,Object> getAttributes()
RuntimeContext
getAttributes
in interface RuntimeContext
public void close()
close
in interface Closeable
public String getWelcome()
Shell
getWelcome
in interface Shell
public String getPrompt()
Shell
getPrompt
in interface Shell
public ShellProcess createProcess(String request)
Shell
createProcess
in interface Shell
request
- the request to process
public CompletionMatch complete(String prefix)
complete
in interface Shell
prefix
- the prefix to complete
ClassLoader setCRaSHLoader()
void setPreviousLoader(ClassLoader previous)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |