Class WebSocketResponse


  • public class WebSocketResponse
    extends java.lang.Object
    Just a silly little class that holds on to the socket and listener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.http.WebSocket.Listener listener  
      private java.util.concurrent.CompletableFuture<java.net.http.WebSocket> webSocketFuture  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketResponse​(java.util.concurrent.CompletableFuture<java.net.http.WebSocket> webSocketFuture, java.net.http.WebSocket.Listener listener)
      ctor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.http.WebSocket.Listener listener()  
      java.util.concurrent.CompletableFuture<java.net.http.WebSocket> socket()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • webSocketFuture

        private final java.util.concurrent.CompletableFuture<java.net.http.WebSocket> webSocketFuture
      • listener

        private final java.net.http.WebSocket.Listener listener
    • Constructor Detail

      • WebSocketResponse

        public WebSocketResponse​(java.util.concurrent.CompletableFuture<java.net.http.WebSocket> webSocketFuture,
                                 java.net.http.WebSocket.Listener listener)
        ctor
        Parameters:
        webSocketFuture - the ws future
        listener - the listener
    • Method Detail

      • socket

        public java.util.concurrent.CompletableFuture<java.net.http.WebSocket> socket()
        Returns:
        the ws future
      • listener

        public java.net.http.WebSocket.Listener listener()
        Returns:
        the listener