|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.socketio.transport.XHRTransport.XHRSessionHelper
protected abstract class XHRTransport.XHRSessionHelper
| Field Summary | |
|---|---|
protected SocketIOSession |
session
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final SocketIOSession session
| Method Detail |
|---|
protected abstract void startSend(org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOException
protected abstract void writeData(org.atmosphere.cpr.AtmosphereResponse response,
String data)
throws IOException
IOException
protected abstract void finishSend(org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOExceptionpublic 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 SocketIOSessionOutboundIOException
protected abstract void customConnect(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
throws IOException
IOException
public void connect(org.atmosphere.cpr.AtmosphereResourceImpl resource)
throws IOException
IOExceptionpublic void abort()
SocketIOSessionOutbound
abort in interface SocketIOSessionOutboundpublic String getSessionId()
getSessionId in interface SocketIOSessionOutbound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||