org.crsh.command
Class BaseCommandContext

java.lang.Object
  extended by org.crsh.command.BaseCommandContext
All Implemented Interfaces:
CommandContext

public class BaseCommandContext
extends Object
implements CommandContext


Field Summary
private  Map<String,Object> attributes
          .
private  Map<String,Object> session
          .
 
Constructor Summary
BaseCommandContext(Map<String,Object> session, Map<String,Object> attributes)
           
 
Method Summary
 Map<String,Object> getAttributes()
          Returns the current shell attributes.
 Map<String,Object> getSession()
          Returns the current shell session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final Map<String,Object> session
.


attributes

private final Map<String,Object> attributes
.

Constructor Detail

BaseCommandContext

public BaseCommandContext(Map<String,Object> session,
                          Map<String,Object> attributes)
Method Detail

getSession

public final Map<String,Object> getSession()
Description copied from interface: CommandContext
Returns the current shell session.

Specified by:
getSession in interface CommandContext
Returns:
the session map

getAttributes

public Map<String,Object> getAttributes()
Description copied from interface: CommandContext
Returns the current shell attributes.

Specified by:
getAttributes in interface CommandContext
Returns:
the attributes map


Copyright © 2013 eXo Platform SAS. All Rights Reserved.