com.glines.socketio.server
Interface SocketIOSession.SessionTransportHandler

All Superinterfaces:
SocketIOOutbound
All Known Implementing Classes:
JSONPPollingTransport.XHRPollingSessionHelper, XHRPollingTransport.XHRPollingSessionHelper, XHRTransport.XHRSessionHelper
Enclosing interface:
SocketIOSession

public static interface SocketIOSession.SessionTransportHandler
extends SocketIOOutbound


Method Summary
 void abort()
          Cause connection and all activity to be aborted and all resources to be released.
 void disconnectWhenEmpty()
           
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SocketIOSession session)
           
 void sendMessage(SocketIOFrame message)
           
 
Methods inherited from interface com.glines.socketio.server.SocketIOOutbound
close, disconnect, getConnectionState, sendMessage, sendMessage
 

Method Detail

handle

void handle(javax.servlet.http.HttpServletRequest request,
            javax.servlet.http.HttpServletResponse response,
            SocketIOSession session)
            throws IOException
Throws:
IOException

sendMessage

void sendMessage(SocketIOFrame message)
                 throws SocketIOException
Throws:
SocketIOException

disconnectWhenEmpty

void disconnectWhenEmpty()

abort

void abort()
Cause connection and all activity to be aborted and all resources to be released. The handler is expected to call the session's onShutdown() when it is finished. The only session method that the handler can legally call after this is onShutdown();



Copyright © 2010-2011. All Rights Reserved.