|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.processor.jline.JLineProcessContext
class JLineProcessContext
| Field Summary | |
|---|---|
(package private) CountDownLatch |
latch
. |
private static Character |
NO_ECHO
. |
(package private) JLineProcessor |
processor
. |
(package private) AtomicReference<ShellResponse> |
resp
. |
| Constructor Summary | |
|---|---|
JLineProcessContext(JLineProcessor processor)
|
|
| Method Summary | |
|---|---|
void |
end(ShellResponse response)
This method is invoked when the process ends. |
void |
flush()
|
int |
getHeight()
Returns the term height in chars. |
String |
getProperty(String name)
Returns a generic property, usually this property is resolved by the shell client. |
int |
getWidth()
Returns the term width in chars. |
void |
provide(Chunk element)
Provide an element. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Character NO_ECHO
final JLineProcessor processor
final CountDownLatch latch
final AtomicReference<ShellResponse> resp
| Constructor Detail |
|---|
public JLineProcessContext(JLineProcessor processor)
| Method Detail |
|---|
public int getWidth()
InteractionContext
getWidth in interface InteractionContext<Chunk>public int getHeight()
InteractionContext
getHeight in interface InteractionContext<Chunk>public String getProperty(String name)
InteractionContext
getProperty in interface InteractionContext<Chunk>name - the property name
public String readLine(String msg,
boolean echo)
InteractionContext
readLine in interface InteractionContext<Chunk>msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typing
public void provide(Chunk element)
throws IOException
Pipe
provide in interface Pipe<Chunk>element - the provided element
IOExceptionpublic void flush()
flush in interface Flushablepublic void end(ShellResponse response)
ShellProcessContext
end in interface ShellProcessContextresponse - the shell response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||