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 classLongPollingTransport.FactoryNested classes/interfaces inherited from class org.cometd.client.transport.ClientTransport
ClientTransport.FailureHandler, ClientTransport.FailureInfo -
Field Summary
Fields Modifier and Type Field Description static StringMAX_BUFFER_SIZE_OPTIONDeprecated.useClientTransport.MAX_MESSAGE_SIZE_OPTIONinsteadstatic StringNAMEstatic StringPREFIXFields 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 voidabort()Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as/meta/connects, without waiting for a response.booleanaccept(String bayeuxVersion)protected voidcustomize(org.eclipse.jetty.client.api.Request request)voidinit()voidsend(TransportListener listener, List<Message.Mutable> messages)Methods inherited from class org.cometd.client.transport.HttpClientTransport
getCookies, getCookieStore, setCookieStore, storeCookiesMethods inherited from class org.cometd.client.transport.ClientTransport
generateJSON, getMaxNetworkDelay, getURL, parseMessages, setMaxNetworkDelay, setURL, terminateMethods 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_OPTIONinstead- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
accept
- Specified by:
acceptin classClientTransport
-
init
public void init()- Overrides:
initin classClientTransport
-
abort
public void abort()Description copied from class:ClientTransportAborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as/meta/connects, without waiting for a response.- Specified by:
abortin classClientTransport- See Also:
BayeuxClient.abort()
-
send
- Specified by:
sendin classClientTransport
-
customize
protected void customize(org.eclipse.jetty.client.api.Request request)
-