Package org.cometd.client.transport
Class HttpClientTransport
- java.lang.Object
-
- org.cometd.common.AbstractTransport
-
- org.cometd.client.transport.ClientTransport
-
- org.cometd.client.transport.HttpClientTransport
-
- All Implemented Interfaces:
Transport
- Direct Known Subclasses:
AbstractHttpClientTransport
,AbstractWebSocketTransport
public abstract class HttpClientTransport extends ClientTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cometd.client.transport.ClientTransport
ClientTransport.Factory, ClientTransport.FailureHandler, ClientTransport.FailureInfo
-
-
Field Summary
-
Fields inherited from class org.cometd.client.transport.ClientTransport
JSON_CONTEXT_OPTION, MAX_MESSAGE_SIZE_OPTION, MAX_NETWORK_DELAY_OPTION, MAX_SEND_BAYEUX_MESSAGE_SIZE_OPTION, SCHEDULER_OPTION, URL_OPTION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpClientTransport(java.lang.String name, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> options)
Deprecated.protected
HttpClientTransport(java.lang.String name, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> options, java.util.concurrent.ScheduledExecutorService scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.net.HttpCookie>
getCookies(java.net.URI uri)
protected java.net.CookieStore
getCookieStore()
void
setCookieStore(java.net.CookieStore cookieStore)
protected void
storeCookies(java.net.URI uri, java.util.Map<java.lang.String,java.util.List<java.lang.String>> cookies)
-
Methods inherited from class org.cometd.client.transport.ClientTransport
abort, accept, generateJSON, getJSONContextClient, getMaxNetworkDelay, getScheduler, getURL, init, initScheduler, parseMessages, send, setMaxNetworkDelay, setURL, shutdownScheduler, terminate
-
Methods inherited from class org.cometd.common.AbstractTransport
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
-
-
-
-
Constructor Detail
-
HttpClientTransport
@Deprecated protected HttpClientTransport(java.lang.String name, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> options)
Deprecated.
-
HttpClientTransport
protected HttpClientTransport(java.lang.String name, java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> options, java.util.concurrent.ScheduledExecutorService scheduler)
-
-
Method Detail
-
getCookieStore
protected java.net.CookieStore getCookieStore()
-
setCookieStore
public void setCookieStore(java.net.CookieStore cookieStore)
-
getCookies
protected java.util.List<java.net.HttpCookie> getCookies(java.net.URI uri)
-
storeCookies
protected void storeCookies(java.net.URI uri, java.util.Map<java.lang.String,java.util.List<java.lang.String>> cookies)
-
-