class PipeLineInvocationContext extends AbstractInvocationContext<Object>
| Modifier and Type | Field and Description |
|---|---|
(package private) InvocationContext<Object> |
outter
.
|
| Constructor and Description |
|---|
PipeLineInvocationContext(InvocationContext<Object> outter) |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
append(char c) |
Screenable |
append(CharSequence s) |
Appendable |
append(CharSequence csq,
int start,
int end) |
Screenable |
append(Style style) |
void |
close() |
Screenable |
cls() |
void |
flush()
Flush the stream.
|
Map<String,Object> |
getAttributes()
Returns the current attributes.
|
Class<Object> |
getConsumedType()
Returns the class of the element generic type.
|
int |
getHeight()
Returns the screen height in chars.
|
String |
getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the
shell client.
|
Map<String,Object> |
getSession()
Returns the current session.
|
int |
getWidth()
Returns the screen width in chars.
|
RenderPrintWriter |
getWriter()
Returns the writer for the output.
|
void |
provide(Object element)
Provide an element.
|
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console, this method call can be blocking until the user provides
a value.
|
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer.
|
CommandInvoker<?,?> |
resolve(String s)
Resolve a command invoker for the specified command line.
|
boolean |
takeAlternateBuffer()
Take control of the alternate buffer.
|
leftShiftfinal InvocationContext<Object> outter
PipeLineInvocationContext(InvocationContext<Object> outter)
public CommandInvoker<?,?> resolve(String s) throws CommandException
InvocationContexts - the command lineCommandException - any command exceptionpublic int getWidth()
ScreenContextpublic int getHeight()
ScreenContextpublic boolean takeAlternateBuffer() throws IOException
InteractionContextScreenContext.flush() method
is invoked.IOExceptionpublic boolean releaseAlternateBuffer() throws IOException
InteractionContextScreenContext.flush() method
is invoked.IOExceptionpublic String getProperty(String propertyName)
InteractionContextpropertyName - the property namepublic String readLine(String msg, boolean echo) throws IOException, InterruptedException
InteractionContextmsg - the message to display before reading a lineecho - wether or not the line read should be echoed when typingIOException - any io exceptionInterruptedException - the thread was interrupted while waiting for the user valuepublic RenderPrintWriter getWriter()
InvocationContextpublic Class<Object> getConsumedType()
Consumerpublic Screenable append(CharSequence s) throws IOException
IOExceptionpublic Appendable append(char c) throws IOException
IOExceptionpublic Appendable append(CharSequence csq, int start, int end) throws IOException
IOExceptionpublic Screenable append(Style style) throws IOException
IOExceptionpublic Screenable cls() throws IOException
IOExceptionpublic void provide(Object element) throws Exception
Consumerelement - the provided elementException - any exceptionpublic void flush() throws IOException
ConsumerIOException - any io exceptionpublic void close()
public Map<String,Object> getSession()
RuntimeContextpublic Map<String,Object> getAttributes()
RuntimeContextCopyright © 2015 eXo Platform SAS. All Rights Reserved.