public class LongPollingTransport extends HttpClientTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
LongPollingTransport.Factory |
ClientTransport.FailureHandler, ClientTransport.FailureInfo| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_BUFFER_SIZE_OPTION
Deprecated.
use
ClientTransport.MAX_MESSAGE_SIZE_OPTION instead |
static String |
NAME |
static String |
PREFIX |
JSON_CONTEXT_OPTION, logger, MAX_MESSAGE_SIZE_OPTION, MAX_NETWORK_DELAY_OPTION, SCHEDULER_OPTION, URL_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) |
protected void |
customize(org.eclipse.jetty.client.api.Request request) |
void |
init() |
void |
send(TransportListener listener,
List<Message.Mutable> messages) |
getCookieStore, setCookieStoregenerateJSON, getMaxNetworkDelay, getURL, parseMessages, setMaxNetworkDelay, setURL, terminategetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixpublic static final String NAME
public static final String PREFIX
@Deprecated public static final String MAX_BUFFER_SIZE_OPTION
ClientTransport.MAX_MESSAGE_SIZE_OPTION insteadpublic LongPollingTransport(Map<String,Object> options, org.eclipse.jetty.client.HttpClient httpClient)
public boolean accept(String bayeuxVersion)
accept in class ClientTransportpublic void init()
init in class ClientTransportpublic void abort()
ClientTransport/meta/connects, without waiting for a response.abort in class ClientTransportBayeuxClient.abort()public void send(TransportListener listener, List<Message.Mutable> messages)
send in class ClientTransportprotected void customize(org.eclipse.jetty.client.api.Request request)
Copyright © 2008–2017 The CometD Project. All rights reserved.