public class WebConsoleSession
extends org.eclipse.osgi.framework.console.ConsoleSession
Constructor and Description |
---|
WebConsoleSession() |
Modifier and Type | Method and Description |
---|---|
void |
addOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener flushListener) |
void |
clearOutput() |
protected void |
doClose() |
InputStream |
getInput() |
List<WebConsoleWriterOutputStream.OnFlushListener> |
getOnFlushListeners() |
OutputStream |
getOutput() |
StringWriter |
getOutputAsWriter()
For the output we are using a string writer in fact.
|
PrintStream |
getSource() |
void |
issueCommand(String cmd)
Issue a command on the console.
|
void |
processCommand(String cmd,
boolean wait)
Process command comming from a web UI
|
boolean |
removeOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener flushListener) |
protected void doClose()
doClose
in class org.eclipse.osgi.framework.console.ConsoleSession
public InputStream getInput()
getInput
in class org.eclipse.osgi.framework.console.ConsoleSession
public OutputStream getOutput()
getOutput
in class org.eclipse.osgi.framework.console.ConsoleSession
public StringWriter getOutputAsWriter()
public PrintStream getSource()
public void issueCommand(String cmd)
cmd
- public void addOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener flushListener)
flushListener
- Object that is called back when the outputstream is flushed.public boolean removeOnFlushListener(WebConsoleWriterOutputStream.OnFlushListener flushListener)
flushListener
- Object that is called back when the outputstream is flushed.public void processCommand(String cmd, boolean wait)
cmd
- public void clearOutput()
public List<WebConsoleWriterOutputStream.OnFlushListener> getOnFlushListeners()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.