org.atmosphere.samples.chat
Class ChatAtmosphereHandler

java.lang.Object
  extended by org.atmosphere.samples.chat.ChatAtmosphereHandler
All Implemented Interfaces:
AtmosphereHandler

public class ChatAtmosphereHandler
extends Object
implements AtmosphereHandler

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

Author:
Jeanfrancois Arcand

Constructor Summary
ChatAtmosphereHandler()
           
 
Method Summary
 void destroy()
           
 void onRequest(AtmosphereResource r)
           
 void onStateChange(AtmosphereResourceEvent event)
           
 
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

onRequest

public void onRequest(AtmosphereResource r)
               throws IOException
Specified by:
onRequest in interface AtmosphereHandler
Throws:
IOException

onStateChange

public void onStateChange(AtmosphereResourceEvent event)
                   throws IOException
Specified by:
onStateChange in interface AtmosphereHandler
Throws:
IOException

destroy

public void destroy()
Specified by:
destroy in interface AtmosphereHandler


Copyright © 2012. All Rights Reserved.