|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.shell.impl.CRaSHSession
public class CRaSHSession
Field Summary | |
---|---|
(package private) static org.slf4j.Logger |
accessLog
. |
(package private) Map<String,Object> |
attributes
. |
(package private) CRaSH |
crash
. |
private groovy.lang.GroovyShell |
groovyShell
. |
(package private) static org.slf4j.Logger |
log
. |
(package private) Principal |
user
. |
Constructor Summary | |
---|---|
CRaSHSession(CRaSH crash,
Principal user)
|
Method Summary | |
---|---|
void |
close()
|
CommandCompletion |
complete(String prefix)
For now basic implementation |
ShellProcess |
createProcess(String request)
Process a request. |
Object |
getAttribute(String name)
|
groovy.lang.GroovyShell |
getGroovyShell()
Used for testing purposes. |
groovy.lang.Script |
getLifeCycle(String name)
|
String |
getPrompt()
Returns the shell prompt. |
String |
getWelcome()
Returns the welcome message. |
void |
setAttribute(String name,
Object value)
|
(package private) ClassLoader |
setCRaSHLoader()
|
(package private) void |
setPreviousLoader(ClassLoader previous)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final org.slf4j.Logger log
static final org.slf4j.Logger accessLog
private groovy.lang.GroovyShell groovyShell
final CRaSH crash
final Map<String,Object> attributes
final Principal user
Constructor Detail |
---|
CRaSHSession(CRaSH crash, Principal user)
Method Detail |
---|
public groovy.lang.GroovyShell getGroovyShell()
public groovy.lang.Script getLifeCycle(String name) throws NoSuchCommandException, NullPointerException
NoSuchCommandException
NullPointerException
public Object getAttribute(String name)
public void setAttribute(String name, Object value)
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 CommandCompletion 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 |