Class XHRTransport
- java.lang.Object
-
- org.atmosphere.socketio.transport.AbstractTransport
-
- org.atmosphere.socketio.transport.XHRTransport
-
- All Implemented Interfaces:
Transport
- Direct Known Subclasses:
JSONPPollingTransport,XHRPollingTransport
public abstract class XHRTransport extends AbstractTransport
- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com, Jeanfrancois Arcand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXHRTransport.XHRSessionHelper
-
Field Summary
-
Fields inherited from class org.atmosphere.socketio.transport.AbstractTransport
POST_MESSAGE_RECEIVED, SESSION_KEY
-
-
Constructor Summary
Constructors Constructor Description XHRTransport(int bufferSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected SocketIOSessionconnect(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory)protected SocketIOSessionconnect(SocketIOSession session, org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory)protected abstract XHRTransport.XHRSessionHelpercreateHelper(SocketIOSession session)This method should only be called within the context of an active HTTP request.org.atmosphere.cpr.Actionhandle(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory)-
Methods inherited from class org.atmosphere.socketio.transport.AbstractTransport
decodePostData, destroy, extractSessionId, extractString, isDisconnectRequest
-
-
-
-
Method Detail
-
createHelper
protected abstract XHRTransport.XHRSessionHelper createHelper(SocketIOSession session)
This method should only be called within the context of an active HTTP request.
-
connect
protected SocketIOSession connect(SocketIOSession session, org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
connect
protected SocketIOSession connect(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
handle
public org.atmosphere.cpr.Action handle(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler atmosphereHandler, SocketIOSessionFactory sessionFactory) throws java.io.IOException- Throws:
java.io.IOException
-
-