org.crsh
Interface InteractionContext

All Known Subinterfaces:
Filter<C,P>, InvocationContext<P>, ProducerContext<P>, ShellProcessContext
All Known Implementing Classes:
ClientProcessContext, InnerInvocationContext, InvocationContextImpl, InvokerPipeFilter, JLineProcessContext, ProcessContext, ProcessInvocationContext, SinkPipeFilter, ToChunkPipeFilter

public interface InteractionContext


Method Summary
 String getProperty(String propertyName)
          Returns a generic property, usually this property is resolved by the shell client.
 String readLine(String msg, boolean echo)
          Display a message and read a line on the console.
 

Method Detail

getProperty

String getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the shell client.

Parameters:
propertyName - the property name
Returns:
the property value

readLine

String readLine(String msg,
                boolean echo)
Display a message and read a line on the console. If no line can be read then null is returned.

Parameters:
msg - the message to display before reading a line
echo - wether or not the line read should be echoed when typing
Returns:
the line read


Copyright © 2012 eXo Platform SAS. All Rights Reserved.