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
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
All Methods Instance Methods Concrete Methods 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)
protected void
customize(org.eclipse.jetty.client.api.Request request, Promise<org.eclipse.jetty.client.api.Request> promise)
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 Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(String bayeuxVersion)
- 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
public void send(TransportListener listener, List<Message.Mutable> messages)
- Specified by:
send
in classClientTransport
-
customize
protected void customize(org.eclipse.jetty.client.api.Request request)
-
customize
protected void customize(org.eclipse.jetty.client.api.Request request, Promise<org.eclipse.jetty.client.api.Request> promise)
-
-