public abstract class SocketIOAtmosphereHandler extends Object implements org.atmosphere.cpr.AtmosphereHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
SOCKETIO_SESSION_ID |
static String |
SOCKETIO_SESSION_OUTBOUND |
| Constructor and Description |
|---|
SocketIOAtmosphereHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
abstract void |
onConnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler)
Called when the connection is established.
|
abstract void |
onDisconnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
DisconnectReason reason)
Called when the socket connection is disconnected.
|
abstract void |
onMessage(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
String message)
Called for each message received.
|
void |
onRequest(org.atmosphere.cpr.AtmosphereResource event) |
void |
onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent event) |
public static final String SOCKETIO_SESSION_OUTBOUND
public static final String SOCKETIO_SESSION_ID
public abstract void onConnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler)
throws IOException
handler - The SocketOutbound associated with the connectionIOExceptionpublic abstract void onDisconnect(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
DisconnectReason reason)
event - AtmosphereResourcehandler - outbound handler to broadcast responsereason - The reason for the disconnect.public abstract void onMessage(org.atmosphere.cpr.AtmosphereResource event,
SocketIOSessionOutbound handler,
String message)
event - AtmosphereResourcehandler - outbound handler to broadcast responsemessage - message receivedpublic final void onRequest(org.atmosphere.cpr.AtmosphereResource event)
throws IOException
onRequest in interface org.atmosphere.cpr.AtmosphereHandlerIOExceptionpublic final void onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent event)
throws IOException
onStateChange in interface org.atmosphere.cpr.AtmosphereHandlerIOExceptionpublic void destroy()
destroy in interface org.atmosphere.cpr.AtmosphereHandlerCopyright © 2015. All Rights Reserved.