public class JettyWebSocketTransport extends AbstractWebSocketTransport implements org.eclipse.jetty.websocket.client.io.UpgradeListener
Modifier and Type | Class and Description |
---|---|
static class |
JettyWebSocketTransport.Factory |
protected class |
JettyWebSocketTransport.JettyWebSocketDelegate |
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 |
---|
JettyWebSocketTransport(Map<String,Object> options,
ScheduledExecutorService scheduler,
org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient) |
JettyWebSocketTransport(String url,
Map<String,Object> options,
ScheduledExecutorService scheduler,
org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient) |
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(org.eclipse.jetty.websocket.client.WebSocketClient client,
org.eclipse.jetty.websocket.client.ClientUpgradeRequest request,
String uri) |
void |
init() |
protected AbstractWebSocketTransport.Delegate |
newDelegate() |
void |
onHandshakeRequest(org.eclipse.jetty.websocket.api.UpgradeRequest request) |
void |
onHandshakeResponse(org.eclipse.jetty.websocket.api.UpgradeResponse 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 JettyWebSocketTransport(Map<String,Object> options, ScheduledExecutorService scheduler, org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient)
public JettyWebSocketTransport(String url, Map<String,Object> options, ScheduledExecutorService scheduler, org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient)
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(org.eclipse.jetty.websocket.client.WebSocketClient client, org.eclipse.jetty.websocket.client.ClientUpgradeRequest request, String uri) throws IOException, InterruptedException
IOException
InterruptedException
protected AbstractWebSocketTransport.Delegate newDelegate()
public void onHandshakeRequest(org.eclipse.jetty.websocket.api.UpgradeRequest request)
onHandshakeRequest
in interface org.eclipse.jetty.websocket.client.io.UpgradeListener
public void onHandshakeResponse(org.eclipse.jetty.websocket.api.UpgradeResponse response)
onHandshakeResponse
in interface org.eclipse.jetty.websocket.client.io.UpgradeListener
Copyright © 2008–2024 The CometD Project. All rights reserved.