public class CRaSHSession extends java.util.HashMap<java.lang.String,java.lang.Object> implements Shell, java.io.Closeable, RuntimeContext, REPLSession
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.crsh.cli.impl.completion.CompletionMatch |
complete(java.lang.String prefix)
For now basic implementation
|
ShellProcess |
createProcess(java.lang.String request)
Process a request.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the current attributes.
|
ShellCommand |
getCommand(java.lang.String name) |
java.lang.Iterable<java.lang.String> |
getCommandNames() |
PluginContext |
getContext() |
java.lang.String |
getPrompt()
Returns the shell prompt.
|
REPL |
getRepl()
Returns the current repl of this session.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSession()
Returns the current session.
|
java.lang.String |
getWelcome()
Returns the welcome message.
|
void |
setRepl(REPL repl)
Set the current repl of this session.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic final CRaSH crash
public REPL getRepl()
public void setRepl(REPL repl) throws java.lang.NullPointerException
repl - the new repljava.lang.NullPointerException - if the repl is nullpublic java.lang.Iterable<java.lang.String> getCommandNames()
getCommandNames in interface REPLSessionpublic ShellCommand getCommand(java.lang.String name) throws CommandCreationException
getCommand in interface REPLSessionCommandCreationExceptionpublic PluginContext getContext()
getContext in interface REPLSessionpublic java.util.Map<java.lang.String,java.lang.Object> getSession()
RuntimeContextgetSession in interface RuntimeContextpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
RuntimeContextgetAttributes in interface RuntimeContextpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic java.lang.String getWelcome()
ShellgetWelcome in interface Shellpublic java.lang.String getPrompt()
Shellpublic ShellProcess createProcess(java.lang.String request)
ShellcreateProcess in interface Shellrequest - the request to processpublic org.crsh.cli.impl.completion.CompletionMatch complete(java.lang.String prefix)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.