|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.glines.socketio.server.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()
Initiate an orderly close of the connection. |
void |
connect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected abstract void |
customConnect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected String |
decodePostData(String contentType,
String data)
|
void |
disconnect()
Terminate the connection. |
void |
disconnectWhenEmpty()
|
protected abstract void |
finishSend(javax.servlet.ServletResponse response)
|
ConnectionState |
getConnectionState()
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SocketIOSession session)
|
void |
onComplete(org.eclipse.jetty.continuation.Continuation cont)
|
void |
onTimeout(org.eclipse.jetty.continuation.Continuation cont)
|
void |
sendMessage(int messageType,
String message)
Send a message. |
void |
sendMessage(SocketIOFrame frame)
|
void |
sendMessage(String message)
Send a message to the client. |
protected abstract void |
startSend(javax.servlet.http.HttpServletResponse response)
|
protected abstract void |
writeData(javax.servlet.ServletResponse 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(javax.servlet.http.HttpServletResponse response)
throws IOException
IOException
protected abstract void writeData(javax.servlet.ServletResponse response,
String data)
throws IOException
IOException
protected abstract void finishSend(javax.servlet.ServletResponse response)
throws IOException
IOExceptionpublic void disconnect()
SocketIOOutbound
disconnect in interface SocketIOOutboundpublic void close()
SocketIOOutbound
close in interface SocketIOOutboundpublic ConnectionState getConnectionState()
getConnectionState in interface SocketIOOutbound
public void sendMessage(SocketIOFrame frame)
throws SocketIOException
sendMessage in interface SocketIOSession.SessionTransportHandlerSocketIOException
public void sendMessage(String message)
throws SocketIOException
SocketIOOutbound
sendMessage in interface SocketIOOutboundmessage - The message to send
SocketIOException
public void sendMessage(int messageType,
String message)
throws SocketIOException
SocketIOOutbound
sendMessage in interface SocketIOOutboundSocketIOException
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SocketIOSession session)
throws IOException
handle in interface SocketIOSession.SessionTransportHandlerIOException
protected String decodePostData(String contentType,
String data)
public void onComplete(org.eclipse.jetty.continuation.Continuation cont)
onComplete in interface org.eclipse.jetty.continuation.ContinuationListenerpublic void onTimeout(org.eclipse.jetty.continuation.Continuation cont)
onTimeout in interface org.eclipse.jetty.continuation.ContinuationListener
protected abstract void customConnect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException
public void connect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic void disconnectWhenEmpty()
disconnectWhenEmpty in interface SocketIOSession.SessionTransportHandlerpublic void abort()
SocketIOSession.SessionTransportHandler
abort in interface SocketIOSession.SessionTransportHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||