org.atmosphere.socketio.cpr
Class SocketIOAtmosphereHandler
java.lang.Object
org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
- All Implemented Interfaces:
- org.atmosphere.cpr.AtmosphereHandler
public abstract class SocketIOAtmosphereHandler
- extends Object
- implements org.atmosphere.cpr.AtmosphereHandler
- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com, Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOCKETIO_SESSION_OUTBOUND
public static final String SOCKETIO_SESSION_OUTBOUND
- See Also:
- Constant Field Values
SOCKETIO_SESSION_ID
public static final String SOCKETIO_SESSION_ID
SocketIOAtmosphereHandler
public SocketIOAtmosphereHandler()
onConnect
public abstract void onConnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler)
throws IOException
- Called when the connection is established.
- Parameters:
handler - The SocketOutbound associated with the connection
- Throws:
IOException
onDisconnect
public abstract void onDisconnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
DisconnectReason reason)
- Called when the socket connection is disconnected.
- Parameters:
event - AtmosphereResourcehandler - outbound handler to broadcast responsereason - The reason for the disconnect.
onMessage
public abstract void onMessage(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
String message)
- Called for each message received.
- Parameters:
event - AtmosphereResourcehandler - outbound handler to broadcast responsemessage - message received
onRequest
public final void onRequest(org.atmosphere.cpr.AtmosphereResource event)
throws IOException
-
- Specified by:
onRequest in interface org.atmosphere.cpr.AtmosphereHandler
- Throws:
IOException
onStateChange
public final void onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent event)
throws IOException
-
- Specified by:
onStateChange in interface org.atmosphere.cpr.AtmosphereHandler
- Throws:
IOException
destroy
public void destroy()
- Specified by:
destroy in interface org.atmosphere.cpr.AtmosphereHandler
Copyright © 2013. All Rights Reserved.