public class WebSocketTransport extends HttpClientTransport implements MessageClientTransport
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebSocketTransport.CometDWebSocket |
HttpClientTransport.Cookie, HttpClientTransport.CookieProvider, HttpClientTransport.StandardCookieProvider| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECT_TIMEOUT_OPTION |
static String |
IDLE_TIMEOUT_OPTION |
static String |
MAX_MESSAGE_SIZE_OPTION |
static String |
NAME |
static String |
PREFIX |
static String |
PROTOCOL_OPTION |
static String |
STICKY_RECONNECT_OPTION |
INTERVAL_OPTION, JSON_CONTEXT, logger, MAX_NETWORK_DELAY_OPTION, TIMEOUT_OPTION| Constructor and Description |
|---|
WebSocketTransport(Map<String,Object> options,
org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory,
ScheduledExecutorService scheduler) |
WebSocketTransport(String url,
Map<String,Object> options,
org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory,
ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
boolean |
accept(String version) |
protected org.eclipse.jetty.websocket.WebSocket.Connection |
connect(org.eclipse.jetty.websocket.WebSocketClient client,
URI uri) |
static WebSocketTransport |
create(Map<String,Object> options,
org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory) |
static WebSocketTransport |
create(Map<String,Object> options,
org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory,
ScheduledExecutorService scheduler) |
protected void |
disconnect(String reason) |
void |
init() |
protected org.eclipse.jetty.websocket.WebSocketClient |
newWebSocketClient() |
protected void |
onMessages(List<org.cometd.bayeux.Message.Mutable> messages) |
void |
send(TransportListener listener,
org.cometd.bayeux.Message.Mutable... messages) |
void |
setMessageTransportListener(TransportListener listener) |
void |
terminate() |
getCookie, getCookieProvider, getURL, setCookie, setCookieProvider, setURLdebug, generateJSON, isDebugEnabled, parseMessages, setDebugEnabledpublic static final String PREFIX
public static final String NAME
public static final String PROTOCOL_OPTION
public static final String CONNECT_TIMEOUT_OPTION
public static final String IDLE_TIMEOUT_OPTION
public static final String MAX_MESSAGE_SIZE_OPTION
public static final String STICKY_RECONNECT_OPTION
public WebSocketTransport(Map<String,Object> options, org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory, ScheduledExecutorService scheduler)
public WebSocketTransport(String url, Map<String,Object> options, org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory, ScheduledExecutorService scheduler)
public static WebSocketTransport create(Map<String,Object> options, org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory)
public static WebSocketTransport create(Map<String,Object> options, org.eclipse.jetty.websocket.WebSocketClientFactory webSocketClientFactory, ScheduledExecutorService scheduler)
public void setMessageTransportListener(TransportListener listener)
setMessageTransportListener in interface MessageClientTransportpublic boolean accept(String version)
accept in class ClientTransportpublic void init()
init in class ClientTransportpublic void abort()
abort in class ClientTransportpublic void terminate()
terminate in class ClientTransportprotected void disconnect(String reason)
public void send(TransportListener listener, org.cometd.bayeux.Message.Mutable... messages)
send in class ClientTransportprotected org.eclipse.jetty.websocket.WebSocket.Connection connect(org.eclipse.jetty.websocket.WebSocketClient client,
URI uri)
throws IOException,
InterruptedException,
TimeoutException
protected org.eclipse.jetty.websocket.WebSocketClient newWebSocketClient()
protected void onMessages(List<org.cometd.bayeux.Message.Mutable> messages)
Copyright © 2008–2014 Dojo Foundation. All rights reserved.