Class JettyWebSocketTransport

    • Constructor Detail

      • JettyWebSocketTransport

        public JettyWebSocketTransport​(java.util.Map<java.lang.String,​java.lang.Object> options,
                                       java.util.concurrent.ScheduledExecutorService scheduler,
                                       org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient)
      • JettyWebSocketTransport

        public JettyWebSocketTransport​(java.lang.String url,
                                       java.util.Map<java.lang.String,​java.lang.Object> options,
                                       java.util.concurrent.ScheduledExecutorService scheduler,
                                       org.eclipse.jetty.websocket.client.WebSocketClient webSocketClient)
    • Method Detail

      • accept

        public boolean accept​(java.lang.String version)
        Specified by:
        accept in class ClientTransport
      • connect

        protected AbstractWebSocketTransport.Delegate connect​(org.eclipse.jetty.websocket.client.WebSocketClient client,
                                                              org.eclipse.jetty.websocket.client.ClientUpgradeRequest request,
                                                              java.lang.String uri)
                                                       throws java.io.IOException,
                                                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • onHandshakeRequest

        public void onHandshakeRequest​(org.eclipse.jetty.client.HttpRequest request)
        Specified by:
        onHandshakeRequest in interface org.eclipse.jetty.websocket.client.JettyUpgradeListener
      • onHandshakeResponse

        public void onHandshakeResponse​(org.eclipse.jetty.client.HttpRequest request,
                                        org.eclipse.jetty.client.HttpResponse response)
        Specified by:
        onHandshakeResponse in interface org.eclipse.jetty.websocket.client.JettyUpgradeListener
      • headersToMap

        public static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headersToMap​(org.eclipse.jetty.http.HttpFields headers)