|
||||||||||
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) Map<String,Object> |
attributes
. |
private CRaSH |
crash
. |
private groovy.lang.GroovyShell |
groovyShell
. |
(package private) static org.slf4j.Logger |
log
. |
Constructor Summary | |
---|---|
CRaSHSession(CRaSH crash)
|
Method Summary | |
---|---|
void |
close()
|
CommandCompletion |
complete(String prefix)
For now basic implementation |
ShellProcess |
createProcess(String request)
Process a request. |
Object |
getAttribute(String name)
|
ShellCommand |
getCommand(String name)
Attempt to obtain a command instance. |
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)
|
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
private groovy.lang.GroovyShell groovyShell
private final CRaSH crash
final Map<String,Object> attributes
Constructor Detail |
---|
CRaSHSession(CRaSH crash)
Method Detail |
---|
public groovy.lang.GroovyShell getGroovyShell()
public ShellCommand getCommand(String name) throws CreateCommandException, NullPointerException
name
- the command name
CreateCommandException
- if an error occured preventing the command creation
NullPointerException
- if the name argument is nullpublic groovy.lang.Script getLifeCycle(String name) throws CreateCommandException, NullPointerException
CreateCommandException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |