org.atmosphere.samples.chat
Class ChatAtmosphereHandler

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

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

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

Author:
Jeanfrancois Arcand

Constructor Summary
ChatAtmosphereHandler()
           
 
Method Summary
 void onMessage(AtmosphereResponse response, String message)
           
 
Methods inherited from class org.atmosphere.handler.OnMessage
destroy, onRequest, onStateChange
 
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

ChatAtmosphereHandler

public ChatAtmosphereHandler()
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.