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.websocket.api.UpgradeRequest request)
        Specified by:
        onHandshakeRequest in interface org.eclipse.jetty.websocket.client.io.UpgradeListener
      • onHandshakeResponse

        public void onHandshakeResponse​(org.eclipse.jetty.websocket.api.UpgradeResponse response)
        Specified by:
        onHandshakeResponse in interface org.eclipse.jetty.websocket.client.io.UpgradeListener