Class WebSocketRequest

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public final class WebSocketRequest
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Represents a WebSocket request. param: uri The target URI to connect to. param: extraHeaders Extra headers to add to the WebSocket request. param: subprotocol WebSocket subprotocols (comma separated) if required.
    See Also:
    Serialized Form
    • Constructor Detail

      • WebSocketRequest

        public WebSocketRequest​(Uri uri,
                                scala.collection.immutable.Seq<HttpHeader> extraHeaders,
                                scala.Option<java.lang.String> subprotocol)
    • Method Detail

      • fromTargetUriString

        public static WebSocketRequest fromTargetUriString​(java.lang.String uriString)
      • apply

        public static WebSocketRequest apply​(Uri uri,
                                             scala.collection.immutable.Seq<HttpHeader> extraHeaders,
                                             scala.collection.immutable.Seq<java.lang.String> subprotocols)
      • uri

        public Uri uri()
      • extraHeaders

        public scala.collection.immutable.Seq<HttpHeader> extraHeaders()
      • subprotocol

        public scala.Option<java.lang.String> subprotocol()