org.atmosphere.samples.chat
Class SSEAtmosphereHandler
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSEAtmosphereHandler
public SSEAtmosphereHandler()
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.