org.eclipse.jetty.osgi.equinoxtools.console
Class EquinoxChattingSupport

java.lang.Object
  extended by 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.


Constructor Summary
EquinoxChattingSupport(WebConsoleSession consoleSession)
           
 
Method Summary
 void broadcast(WebConsoleWriterOutputStream.OnFlushListener source)
           
static String jsonEscapeString(String str)
          http://www.ietf.org/rfc/rfc4627.txt
protected  Queue<String> processConsoleOutput(boolean escape, WebConsoleWriterOutputStream.OnFlushListener onflush)
          Split the output into multiple lines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquinoxChattingSupport

public EquinoxChattingSupport(WebConsoleSession consoleSession)
Method Detail

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.