Package org.cometd.client.transport
Class LongPollingTransport
java.lang.Object
org.cometd.common.AbstractTransport
org.cometd.client.transport.ClientTransport
org.cometd.client.transport.HttpClientTransport
org.cometd.client.transport.LongPollingTransport
- All Implemented Interfaces:
Transport
public class LongPollingTransport extends HttpClientTransport
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LongPollingTransport.Factory
Nested classes/interfaces inherited from class org.cometd.client.transport.ClientTransport
ClientTransport.FailureHandler, ClientTransport.FailureInfo
-
Field Summary
Fields Modifier and Type Field Description static String
MAX_BUFFER_SIZE_OPTION
Deprecated.useClientTransport.MAX_MESSAGE_SIZE_OPTION
insteadstatic String
NAME
static String
PREFIX
Fields inherited from class org.cometd.client.transport.ClientTransport
JSON_CONTEXT_OPTION, logger, MAX_MESSAGE_SIZE_OPTION, MAX_NETWORK_DELAY_OPTION, SCHEDULER_OPTION, URL_OPTION
-
Constructor Summary
Constructors Constructor Description LongPollingTransport(String url, Map<String,Object> options, org.eclipse.jetty.client.HttpClient httpClient)
LongPollingTransport(Map<String,Object> options, org.eclipse.jetty.client.HttpClient httpClient)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class org.cometd.client.transport.HttpClientTransport
getCookies, getCookieStore, setCookieStore, storeCookies
Methods inherited from class org.cometd.client.transport.ClientTransport
generateJSON, getMaxNetworkDelay, getURL, parseMessages, setMaxNetworkDelay, setURL, terminate
Methods inherited from class org.cometd.common.AbstractTransport
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
PREFIX
- See Also:
- Constant Field Values
-
MAX_BUFFER_SIZE_OPTION
Deprecated.useClientTransport.MAX_MESSAGE_SIZE_OPTION
instead- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
accept
- Specified by:
accept
in classClientTransport
-
init
public void init()- Overrides:
init
in classClientTransport
-
abort
public void abort()Description copied from class:ClientTransport
Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as/meta/connect
s, without waiting for a response.- Specified by:
abort
in classClientTransport
- See Also:
BayeuxClient.abort()
-
send
- Specified by:
send
in classClientTransport
-
customize
protected void customize(org.eclipse.jetty.client.api.Request request)
-