protected abstract class XHRTransport.XHRSessionHelper extends java.lang.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) |
java.lang.String |
getSessionId() |
org.atmosphere.cpr.Action |
handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session) |
void |
sendMessage(java.util.List<SocketIOPacketImpl> messages)
Send messages to the client.
|
void |
sendMessage(SocketIOPacket packet)
Send a message to the client formatted is SocketIO format.
|
void |
sendMessage(java.lang.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,
java.lang.String data) |
protected final SocketIOSession session
protected abstract void startSend(org.atmosphere.cpr.AtmosphereResponse response)
throws java.io.IOException
java.io.IOExceptionprotected abstract void writeData(org.atmosphere.cpr.AtmosphereResponse response,
java.lang.String data)
throws java.io.IOException
java.io.IOExceptionprotected abstract void finishSend(org.atmosphere.cpr.AtmosphereResponse response)
throws java.io.IOException
java.io.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(java.util.List<SocketIOPacketImpl> messages) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundSocketIOExceptionpublic void sendMessage(java.lang.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 java.io.IOException
handle in interface SocketIOSessionOutboundjava.io.IOExceptionprotected abstract void customConnect(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
throws java.io.IOException
java.io.IOExceptionpublic void connect(org.atmosphere.cpr.AtmosphereResourceImpl resource)
throws java.io.IOException
java.io.IOExceptionpublic void abort()
SocketIOSessionOutboundabort in interface SocketIOSessionOutboundpublic java.lang.String getSessionId()
getSessionId in interface SocketIOSessionOutboundCopyright © 2018. All Rights Reserved.