org.atmosphere.samples.chat
Class SSEAtmosphereHandler

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

@AtmosphereHandlerService(path="/chat",
                          interceptors=org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.class)
public class SSEAtmosphereHandler
extends Object
implements AtmosphereHandler

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

Author:
Jeanfrancois Arcand

Constructor Summary
SSEAtmosphereHandler()
           
 
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

SSEAtmosphereHandler

public SSEAtmosphereHandler()
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 © 2013. All Rights Reserved.