|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.socketio.transport.WebSocketTransport.SocketIOWebSocketSessionWrapperImpl
public class WebSocketTransport.SocketIOWebSocketSessionWrapperImpl
| Field Summary | |
|---|---|
boolean |
initiated
|
SocketIOSession |
session
|
SocketIOWebSocketEventListener |
socketioEventListener
|
org.atmosphere.websocket.WebSocket |
webSocket
|
| Method Summary | |
|---|---|
void |
abort()
Cause connection and all activity to be aborted and all resources to be released. |
void |
close()
force close connection |
void |
disconnect()
disconnect the current connection |
SocketIOSession |
getSession()
|
String |
getSessionId()
|
org.atmosphere.cpr.Action |
handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session)
|
void |
initiated(boolean initiated)
|
boolean |
isInitiated()
|
void |
onDisconnect()
|
void |
onMessage(byte frame,
byte[] data,
int offset,
int length)
|
void |
onMessage(byte frame,
String message)
|
void |
sendMessage(List<SocketIOPacketImpl> messages)
Send messages to the client. |
void |
sendMessage(SocketIOPacket packet)
Send a message to the client formatted is SocketIO format. |
void |
sendMessage(String message)
Send a message to the client. |
void |
setWebSocket(org.atmosphere.websocket.WebSocket websocket)
|
org.atmosphere.websocket.WebSocket |
webSocket()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final SocketIOSession session
public final SocketIOWebSocketEventListener socketioEventListener
public boolean initiated
public org.atmosphere.websocket.WebSocket webSocket
| Method Detail |
|---|
public void onDisconnect()
onDisconnect in interface SocketIOWebSocketSessionWrapper
public void onMessage(byte frame,
String message)
onMessage in interface SocketIOWebSocketSessionWrapper
public void onMessage(byte frame,
byte[] data,
int offset,
int length)
onMessage in interface SocketIOWebSocketSessionWrapperpublic void disconnect()
SocketIOOutbound
disconnect in interface SocketIOOutboundpublic void close()
SocketIOOutbound
close in interface SocketIOOutbound
public void sendMessage(SocketIOPacket packet)
throws SocketIOException
SocketIOOutbound
sendMessage in interface SocketIOOutboundpacket - The message to send
SocketIOException
public void sendMessage(List<SocketIOPacketImpl> messages)
throws SocketIOException
SocketIOOutbound
sendMessage in interface SocketIOOutboundSocketIOException
public void sendMessage(String message)
throws SocketIOException
SocketIOOutbound
sendMessage in interface SocketIOOutboundmessage - The message to send
SocketIOException
public org.atmosphere.cpr.Action handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session)
throws IOException
handle in interface SocketIOSessionOutboundIOExceptionpublic void abort()
SocketIOSessionOutbound
abort in interface SocketIOSessionOutboundpublic SocketIOSession getSession()
getSession in interface SocketIOWebSocketSessionWrapperpublic boolean isInitiated()
isInitiated in interface SocketIOWebSocketSessionWrapperpublic org.atmosphere.websocket.WebSocket webSocket()
webSocket in interface SocketIOWebSocketSessionWrapperpublic void setWebSocket(org.atmosphere.websocket.WebSocket websocket)
setWebSocket in interface SocketIOWebSocketSessionWrapperpublic void initiated(boolean initiated)
initiated in interface SocketIOWebSocketSessionWrapperpublic String getSessionId()
getSessionId in interface SocketIOSessionOutbound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||