public abstract class AbstractHttpClientTransport extends HttpClientTransport
ClientTransport.Factory, ClientTransport.FailureHandler, ClientTransport.FailureInfo
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PREFIX |
JSON_CONTEXT_OPTION, MAX_MESSAGE_SIZE_OPTION, MAX_NETWORK_DELAY_OPTION, MAX_SEND_BAYEUX_MESSAGE_SIZE_OPTION, SCHEDULER_OPTION, URL_OPTION
Modifier | Constructor and Description |
---|---|
protected |
AbstractHttpClientTransport(String url,
Map<String,Object> options)
Deprecated.
|
protected |
AbstractHttpClientTransport(String url,
Map<String,Object> options,
ScheduledExecutorService scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
abort(Throwable failure) |
boolean |
accept(String bayeuxVersion) |
protected long |
calculateMaxNetworkDelay(List<org.cometd.bayeux.Message.Mutable> messages) |
protected Map<String,Object> |
getAdvice() |
int |
getMaxMessageSize() |
void |
init() |
protected boolean |
isAborted() |
protected boolean |
isAppendMessageType() |
protected String |
newRequestURI(List<org.cometd.bayeux.Message.Mutable> messages) |
protected void |
processResponseContent(TransportListener listener,
List<org.cometd.bayeux.Message.Mutable> requestMessages,
String content) |
protected void |
processResponseMessages(TransportListener listener,
List<org.cometd.bayeux.Message.Mutable> messages) |
protected void |
processWrongResponseCode(TransportListener listener,
List<org.cometd.bayeux.Message.Mutable> messages,
int code) |
protected void |
setAdvice(Map<String,Object> advice) |
void |
terminate() |
getCookies, getCookieStore, setCookieStore, storeCookies
generateJSON, getJSONContextClient, getMaxNetworkDelay, getScheduler, getURL, initScheduler, parseMessages, send, setMaxNetworkDelay, setURL, shutdownScheduler
public static final String NAME
public static final String PREFIX
@Deprecated protected AbstractHttpClientTransport(String url, Map<String,Object> options)
AbstractHttpClientTransport(String, Map, ScheduledExecutorService)
insteadurl
- the CometD server URLoptions
- the transport optionsprotected AbstractHttpClientTransport(String url, Map<String,Object> options, ScheduledExecutorService scheduler)
public boolean accept(String bayeuxVersion)
accept
in class ClientTransport
public void init()
init
in class ClientTransport
public void terminate()
terminate
in class ClientTransport
public void abort(Throwable failure)
abort
in class ClientTransport
protected boolean isAborted()
public int getMaxMessageSize()
protected boolean isAppendMessageType()
protected long calculateMaxNetworkDelay(List<org.cometd.bayeux.Message.Mutable> messages)
protected void processResponseContent(TransportListener listener, List<org.cometd.bayeux.Message.Mutable> requestMessages, String content)
protected void processResponseMessages(TransportListener listener, List<org.cometd.bayeux.Message.Mutable> messages)
protected void processWrongResponseCode(TransportListener listener, List<org.cometd.bayeux.Message.Mutable> messages, int code)
Copyright © 2008–2023 The CometD Project. All rights reserved.