org.crsh.shell.impl.command
Interface ShellSession

All Superinterfaces:
Map<String,Object>
All Known Implementing Classes:
CRaSHSession

public interface ShellSession
extends Map<String,Object>

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 Command<?> getCommand(String name)
           
 Iterable<Map.Entry<String,String>> getCommands()
           
 PluginContext getContext()
           
 Repl getRepl()
           
 void setRepl(Repl repl)
          Set the current repl of this session.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getContext

PluginContext getContext()

getCommands

Iterable<Map.Entry<String,String>> getCommands()

getCommand

Command<?> getCommand(String name)
                      throws CommandException
Throws:
CommandException

getRepl

Repl getRepl()
Returns:
the current repl of this session

setRepl

void setRepl(Repl repl)
             throws NullPointerException
Set the current repl of this session.

Parameters:
repl - the new repl
Throws:
NullPointerException - if the repl is null


Copyright © 2015 eXo Platform SAS. All Rights Reserved.