public abstract class WebSocketRequest
extends java.lang.Object
WebSocketRequest.create
to create a request
for a target URI and then use addHeader
or requestSubprotocol
to set optional
details.Constructor and Description |
---|
WebSocketRequest() |
Modifier and Type | Method and Description |
---|---|
abstract WebSocketRequest |
addHeader(HttpHeader header)
Return a copy of this request that contains the given additional header.
|
abstract WebSocketRequest |
asScala() |
static WebSocketRequest |
create(java.lang.String uriString)
Creates a WebSocketRequest to a target URI.
|
static WebSocketRequest |
create(Uri uri)
Creates a WebSocketRequest to a target URI.
|
abstract WebSocketRequest |
requestSubprotocol(java.lang.String subprotocol)
Return a copy of this request that will require that the server uses the
given WebSocket subprotocol.
|
static WebSocketRequest |
wrap(WebSocketRequest scalaRequest)
Wraps a Scala version of WebSocketRequest.
|
public static WebSocketRequest create(Uri uri)
WebSocketRequest
to specify further details.uri
- (undocumented)public static WebSocketRequest create(java.lang.String uriString)
WebSocketRequest
to specify further details.uriString
- (undocumented)public static WebSocketRequest wrap(WebSocketRequest scalaRequest)
scalaRequest
- (undocumented)public abstract WebSocketRequest addHeader(HttpHeader header)
header
- (undocumented)public abstract WebSocketRequest requestSubprotocol(java.lang.String subprotocol)
subprotocol
- (undocumented)public abstract WebSocketRequest asScala()