org.atmosphere.cpr
Class EchoWebSocketProcessor

java.lang.Object
  extended by org.atmosphere.cpr.WebSocketProcessor
      extended by org.atmosphere.cpr.EchoWebSocketProcessor
All Implemented Interfaces:
Serializable

public class EchoWebSocketProcessor
extends WebSocketProcessor

Simple WebSocketProcessor that invoke the Broadcaster.broadcast(T) API when a WebSocket message is received. NOTE: If WebSocket frame are used

Author:
Jeanfrancois Arcand
See Also:
Serialized Form

Constructor Summary
EchoWebSocketProcessor(AtmosphereServlet atmosphereServlet, WebSocketSupport webSocketSupport)
           
 
Method Summary
 void broadcast(byte[] data, int offset, int length)
           
 void broadcast(String data)
           
 
Methods inherited from class org.atmosphere.cpr.WebSocketProcessor
atmosphereServlet, close, connect, request, resource, toString, webSocketSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EchoWebSocketProcessor

public EchoWebSocketProcessor(AtmosphereServlet atmosphereServlet,
                              WebSocketSupport webSocketSupport)
Method Detail

broadcast

public void broadcast(String data)
Specified by:
broadcast in class WebSocketProcessor

broadcast

public void broadcast(byte[] data,
                      int offset,
                      int length)
Specified by:
broadcast in class WebSocketProcessor


Copyright © 2011. All Rights Reserved.