protected abstract class XHRTransport.XHRSessionHelper extends Object implements SocketIOSessionOutbound
| Modifier and Type | Field and Description |
|---|---|
protected SocketIOSession |
session |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cause connection and all activity to be aborted and all resources to be released.
|
void |
close()
force close connection
|
void |
connect(org.atmosphere.cpr.AtmosphereResourceImpl resource) |
protected abstract void |
customConnect(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response) |
void |
disconnect()
disconnect the current connection
|
protected abstract void |
finishSend(org.atmosphere.cpr.AtmosphereResponse response) |
String |
getSessionId() |
org.atmosphere.cpr.Action |
handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session) |
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.
|
protected abstract void |
startSend(org.atmosphere.cpr.AtmosphereResponse response) |
protected abstract void |
writeData(org.atmosphere.cpr.AtmosphereResponse response,
String data) |
protected final SocketIOSession session
protected abstract void startSend(org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOExceptionprotected abstract void writeData(org.atmosphere.cpr.AtmosphereResponse response,
String data)
throws IOException
IOExceptionprotected abstract void finishSend(org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOExceptionpublic void disconnect()
SocketIOOutbounddisconnect in interface SocketIOOutboundpublic void close()
SocketIOOutboundclose in interface SocketIOOutboundpublic void sendMessage(SocketIOPacket packet) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundpacket - The message to sendSocketIOExceptionpublic void sendMessage(List<SocketIOPacketImpl> messages) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundSocketIOExceptionpublic void sendMessage(String message) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundmessage - The message to sendSocketIOExceptionpublic org.atmosphere.cpr.Action handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session)
throws IOException
handle in interface SocketIOSessionOutboundIOExceptionprotected abstract void customConnect(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOExceptionpublic void connect(org.atmosphere.cpr.AtmosphereResourceImpl resource)
throws IOException
IOExceptionpublic void abort()
SocketIOSessionOutboundabort in interface SocketIOSessionOutboundpublic String getSessionId()
getSessionId in interface SocketIOSessionOutboundCopyright © 2015. All Rights Reserved.