com.glines.socketio.server.transport
Class AbstractHttpTransport
java.lang.Object
com.glines.socketio.server.transport.AbstractTransport
com.glines.socketio.server.transport.AbstractHttpTransport
- All Implemented Interfaces:
- Transport
- Direct Known Subclasses:
- XHRTransport
public abstract class AbstractHttpTransport
- extends AbstractTransport
|
Field Summary |
static long |
HEARTBEAT_DELAY
The amount of time the session will wait before trying to send a ping. |
static long |
HEARTBEAT_TIMEOUT
This specifies how long to wait for a pong (ping response). |
static long |
HTTP_REQUEST_TIMEOUT
This is a sane default based on the timeout values of various browsers. |
static long |
REQUEST_TIMEOUT
For non persistent connection transports, this is the amount of time to wait
for messages before returning empty results. |
protected static String |
SESSION_KEY
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP_REQUEST_TIMEOUT
public static final long HTTP_REQUEST_TIMEOUT
- This is a sane default based on the timeout values of various browsers.
- See Also:
- Constant Field Values
HEARTBEAT_DELAY
public static final long HEARTBEAT_DELAY
- The amount of time the session will wait before trying to send a ping.
Using a value of half the HTTP_REQUEST_TIMEOUT should be good enough.
- See Also:
- Constant Field Values
HEARTBEAT_TIMEOUT
public static final long HEARTBEAT_TIMEOUT
- This specifies how long to wait for a pong (ping response).
- See Also:
- Constant Field Values
REQUEST_TIMEOUT
public static long REQUEST_TIMEOUT
- For non persistent connection transports, this is the amount of time to wait
for messages before returning empty results.
SESSION_KEY
protected static final String SESSION_KEY
- See Also:
- Constant Field Values
AbstractHttpTransport
public AbstractHttpTransport()
connect
protected abstract SocketIOSession connect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Transport.InboundFactory inboundFactory,
SocketIOSession.Factory sessionFactory)
throws IOException
- Throws:
IOException
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Transport.InboundFactory inboundFactory,
SocketIOSession.Factory sessionFactory)
throws IOException
- Throws:
IOException
Copyright © 2010-2011. All Rights Reserved.