org.crsh.command
Interface InvocationContext<P>

All Superinterfaces:
Closeable, CommandContext<P>, Consumer<P>, Flushable, InteractionContext<P>, RuntimeContext, ScreenContext<P>
All Known Implementing Classes:
InnerInvocationContext, InvocationContextImpl

public interface InvocationContext<P>
extends CommandContext<P>


Method Summary
 RenderPrintWriter getWriter()
          Returns the writer for the output.
 CommandInvoker<?,?> resolve(String s)
          Resolve a command invoker for the specified command line.
 
Methods inherited from interface org.crsh.command.CommandContext
isPiped
 
Methods inherited from interface org.crsh.shell.InteractionContext
getProperty, readLine, releaseAlternateBuffer, takeAlternateBuffer
 
Methods inherited from interface org.crsh.shell.ScreenContext
getHeight, getWidth
 
Methods inherited from interface org.crsh.io.Consumer
getConsumedType, provide
 
Methods inherited from interface java.io.Flushable
flush
 
Methods inherited from interface org.crsh.command.RuntimeContext
getAttributes, getSession
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getWriter

RenderPrintWriter getWriter()
Returns the writer for the output.

Returns:
the writer

resolve

CommandInvoker<?,?> resolve(String s)
                            throws ScriptException,
                                   IOException
Resolve a command invoker for the specified command line.

Parameters:
s - the command line
Returns:
the command invoker
Throws:
ScriptException - any script exception
IOException - any io exception


Copyright © 2014 eXo Platform SAS. All Rights Reserved.