|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.crsh.shell.impl.command.CRaSHSession
public class CRaSHSession
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
(package private) static Logger |
accessLog
. |
(package private) CRaSH |
crash
. |
private groovy.lang.GroovyShell |
groovyShell
. |
(package private) static Logger |
log
. |
(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. |
private String |
eval(String name,
String def)
|
Map<String,Object> |
getAttributes()
Returns the current attributes. |
groovy.lang.GroovyShell |
getGroovyShell()
Used for testing purposes. |
GroovyScript |
getLifeCycle(String name)
|
String |
getPrompt()
Returns the shell prompt. |
Map<String,Object> |
getSession()
Returns the current session. |
String |
getWelcome()
Returns the welcome message. |
(package private) ClassLoader |
setCRaSHLoader()
|
(package private) void |
setPreviousLoader(ClassLoader previous)
|
| 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 |
|---|
equals, hashCode |
| Field Detail |
|---|
static final Logger log
static final Logger accessLog
private groovy.lang.GroovyShell groovyShell
final CRaSH crash
final Principal user
| Constructor Detail |
|---|
CRaSHSession(CRaSH crash,
Principal user)
| Method Detail |
|---|
public groovy.lang.GroovyShell getGroovyShell()
public GroovyScript getLifeCycle(String name)
throws NoSuchCommandException,
NullPointerException
NoSuchCommandException
NullPointerExceptionpublic Map<String,Object> getSession()
RuntimeContext
getSession in interface RuntimeContextpublic Map<String,Object> getAttributes()
RuntimeContext
getAttributes in interface RuntimeContextpublic void close()
close in interface Closeable
private String eval(String name,
String def)
public String getWelcome()
Shell
getWelcome in interface Shellpublic String getPrompt()
Shell
getPrompt in interface Shellpublic ShellProcess createProcess(String request)
Shell
createProcess in interface Shellrequest - the request to process
public CompletionMatch complete(String prefix)
complete in interface Shellprefix - 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 | |||||||||