public class WebSocketTransport extends AbstractWebSocketTransport
Modifier and Type | Class and Description |
---|---|
static class |
WebSocketTransport.Factory |
protected class |
WebSocketTransport.WebSocketDelegate |
AbstractWebSocketTransport.Delegate
ClientTransport.FailureHandler, ClientTransport.FailureInfo
CONNECT_TIMEOUT_OPTION, COOKIE_HEADER, IDLE_TIMEOUT_OPTION, MAX_CLOSE_REASON_LENGTH, NAME, NORMAL_CLOSE_CODE, PERMESSAGE_DEFLATE_OPTION, PREFIX, PROTOCOL_OPTION, STICKY_RECONNECT_OPTION
JSON_CONTEXT_OPTION, MAX_MESSAGE_SIZE_OPTION, MAX_NETWORK_DELAY_OPTION, MAX_SEND_BAYEUX_MESSAGE_SIZE_OPTION, SCHEDULER_OPTION, URL_OPTION
Constructor and Description |
---|
WebSocketTransport(Map<String,Object> options,
ScheduledExecutorService scheduler,
javax.websocket.WebSocketContainer webSocketContainer) |
WebSocketTransport(String url,
Map<String,Object> options,
ScheduledExecutorService scheduler,
javax.websocket.WebSocketContainer webSocketContainer) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String version) |
protected AbstractWebSocketTransport.Delegate |
connect(String uri,
TransportListener listener,
List<Message.Mutable> messages) |
protected AbstractWebSocketTransport.Delegate |
connect(javax.websocket.WebSocketContainer container,
javax.websocket.ClientEndpointConfig configuration,
String uri) |
void |
init() |
protected WebSocketTransport.WebSocketDelegate |
newDelegate() |
protected void |
onHandshakeRequest(Map<String,List<String>> headers) |
protected void |
onHandshakeResponse(javax.websocket.HandshakeResponse response) |
abort, getConnectTimeout, getDelegate, getIdleTimeout, getProtocol, isPerMessageDeflateEnabled, isStickyReconnect, locked, locked, send, setMessageTransportListener, setURL, terminate
getCookies, getCookieStore, setCookieStore, storeCookies
generateJSON, getJSONContextClient, getMaxNetworkDelay, getScheduler, getURL, initScheduler, parseMessages, setMaxNetworkDelay, shutdownScheduler
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
public WebSocketTransport(Map<String,Object> options, ScheduledExecutorService scheduler, javax.websocket.WebSocketContainer webSocketContainer)
public WebSocketTransport(String url, Map<String,Object> options, ScheduledExecutorService scheduler, javax.websocket.WebSocketContainer webSocketContainer)
public boolean accept(String version)
accept
in class ClientTransport
public void init()
init
in class AbstractWebSocketTransport
protected AbstractWebSocketTransport.Delegate connect(String uri, TransportListener listener, List<Message.Mutable> messages)
connect
in class AbstractWebSocketTransport
protected AbstractWebSocketTransport.Delegate connect(javax.websocket.WebSocketContainer container, javax.websocket.ClientEndpointConfig configuration, String uri) throws IOException
IOException
protected WebSocketTransport.WebSocketDelegate newDelegate()
protected void onHandshakeResponse(javax.websocket.HandshakeResponse response)
Copyright © 2008–2024 The CometD Project. All rights reserved.