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/connect s, 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, setCookieStore
generateJSON, getMaxNetworkDelay, getURL, parseMessages, setMaxNetworkDelay, setURL, terminate
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
public 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 ClientTransport
public void init()
init
in class ClientTransport
public void abort()
ClientTransport
/meta/connect
s, without waiting for a response.abort
in class ClientTransport
BayeuxClient.abort()
public void send(TransportListener listener, List<Message.Mutable> messages)
send
in class ClientTransport
protected void customize(org.eclipse.jetty.client.api.Request request)
Copyright © 2008–2017 The CometD Project. All rights reserved.