org.atmosphere.samples.chat
Class SSEAtmosphereHandler

java.lang.Object
  extended by org.atmosphere.handler.AbstractReflectorAtmosphereHandler
      extended by org.atmosphere.handler.OnMessage<String>
          extended by org.atmosphere.samples.chat.SSEAtmosphereHandler
All Implemented Interfaces:
AtmosphereHandler

@AtmosphereHandlerService(path="/chat",
                          interceptors={org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.class,org.atmosphere.interceptor.BroadcastOnPostAtmosphereInterceptor.class})
public class SSEAtmosphereHandler
extends OnMessage<String>

Simple AtmosphereHandler that implement the logic to build a Server Side Events Chat application.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class org.atmosphere.handler.OnMessage
MESSAGE_DELIMITER
 
Constructor Summary
SSEAtmosphereHandler()
           
 
Method Summary
 void onMessage(AtmosphereResponse response, String message)
           
 
Methods inherited from class org.atmosphere.handler.OnMessage
destroy, onDisconnect, onOpen, onRequest, onResume, onStateChange, onTimeout
 
Methods inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
postStateChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSEAtmosphereHandler

public SSEAtmosphereHandler()
Method Detail

onMessage

public void onMessage(AtmosphereResponse response,
                      String message)
               throws IOException
Specified by:
onMessage in class OnMessage<String>
Throws:
IOException


Copyright © 2013. All Rights Reserved.