org.eclipse.jetty.osgi.equinoxtools.console
Class EquinoxChattingSupport
java.lang.Object
org.eclipse.jetty.osgi.equinoxtools.console.EquinoxChattingSupport
public class EquinoxChattingSupport
- extends Object
Processing of the messages to be received and sent to the chat servlets.
Made to be extended for filtering of the messages and commands.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquinoxChattingSupport
public EquinoxChattingSupport(WebConsoleSession consoleSession)
processConsoleOutput
protected Queue<String> processConsoleOutput(boolean escape,
WebConsoleWriterOutputStream.OnFlushListener onflush)
- Split the output into multiple lines.
Format them for the json messages sent to the chat.
Empties the console output from what is already displayed in the chat.
- Returns:
- The lines to add to the message queue of each client.
jsonEscapeString
public static String jsonEscapeString(String str)
- http://www.ietf.org/rfc/rfc4627.txt
- Parameters:
str
-
- Returns:
- The same string escaped according to the JSON RFC.
broadcast
public void broadcast(WebConsoleWriterOutputStream.OnFlushListener source)
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.