public class LongPollingTransport extends HttpClientTransport
HttpClientTransport.Cookie, HttpClientTransport.CookieProvider, HttpClientTransport.StandardCookieProvider| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
PREFIX |
JSON_CONTEXT, logger, MAX_NETWORK_DELAY_OPTION| Constructor and Description |
|---|
LongPollingTransport(Map<String,Object> options,
org.eclipse.jetty.client.HttpClient httpClient) |
LongPollingTransport(String url,
Map<String,Object> options,
org.eclipse.jetty.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts this transport, usually by cancelling all pending Bayeux messages that require a response,
such as
/meta/connects, without waiting for a response. |
boolean |
accept(String bayeuxVersion) |
static LongPollingTransport |
create(Map<String,Object> options) |
static LongPollingTransport |
create(Map<String,Object> options,
org.eclipse.jetty.client.HttpClient httpClient) |
protected void |
customize(org.eclipse.jetty.client.ContentExchange exchange) |
void |
init()
Initializes this transport, usually by reading/defaulting parameters used by the transport
from the options passed to the constructor.
|
void |
send(TransportListener listener,
Message.Mutable... messages) |
getCookie, getCookieProvider, getURL, setCookie, setCookieProvider, setURLdebug, generateJSON, getMaxNetworkDelay, isDebugEnabled, parseMessages, setDebugEnabled, setMaxNetworkDelay, terminategetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixpublic static final String NAME
public static final String PREFIX
public LongPollingTransport(Map<String,Object> options, org.eclipse.jetty.client.HttpClient httpClient)
public static LongPollingTransport create(Map<String,Object> options)
public static LongPollingTransport create(Map<String,Object> options, org.eclipse.jetty.client.HttpClient httpClient)
public boolean accept(String bayeuxVersion)
accept in class ClientTransportpublic void init()
ClientTransportinit in class ClientTransportpublic void abort()
ClientTransport/meta/connects, without waiting for a response.abort in class ClientTransportorg.cometd.client.BayeuxClient#abort()}public void send(TransportListener listener, Message.Mutable... messages)
send in class ClientTransportprotected void customize(org.eclipse.jetty.client.ContentExchange exchange)
Copyright © 2008–2014 Dojo Foundation. All rights reserved.