Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ServerWebSocketHandshake> |
__TYPE_ARG |
Constructor and Description |
---|
ServerWebSocketHandshake(Object delegate) |
ServerWebSocketHandshake(ServerWebSocketHandshake delegate) |
Modifier and Type | Method and Description |
---|---|
Future<ServerWebSocket> |
accept()
Accept the WebSocket and terminate the WebSocket handshake.
|
HostAndPort |
authority() |
boolean |
equals(Object o) |
ServerWebSocketHandshake |
getDelegate() |
int |
hashCode() |
MultiMap |
headers()
Returns the HTTP headers.
|
boolean |
isSsl() |
SocketAddress |
localAddress() |
static ServerWebSocketHandshake |
newInstance(ServerWebSocketHandshake arg) |
String |
path() |
String |
query() |
Future<Void> |
reject()
Reject the WebSocket.
|
Future<Void> |
reject(int status)
Like
reject() but with a status . |
SocketAddress |
remoteAddress() |
String |
scheme() |
SSLSession |
sslSession() |
String |
toString() |
String |
uri() |
public static final io.vertx.lang.rx.TypeArg<ServerWebSocketHandshake> __TYPE_ARG
public ServerWebSocketHandshake(ServerWebSocketHandshake delegate)
public ServerWebSocketHandshake(Object delegate)
public ServerWebSocketHandshake getDelegate()
public MultiMap headers()
public String scheme()
public HostAndPort authority()
public String uri()
public String path()
public String query()
public Future<ServerWebSocket> accept()
public Future<Void> reject()
Calling this method from the WebSocket handler when it is first passed to you gives you the opportunity to reject the WebSocket, which will cause the WebSocket handshake to fail by returning a response code.
You might use this method, if for example you only want to accept WebSockets with a particular path.
public Future<Void> reject(int status)
reject()
but with a status
.status
- public SocketAddress remoteAddress()
null
(e.g a server bound on a domain socket). If useProxyProtocol
is set to true
, the address returned will be of the actual connecting client.public SocketAddress localAddress()
null
(e.g a server bound on a domain socket) If useProxyProtocol
is set to true
, the address returned will be of the proxy.public boolean isSsl()
HttpConnection
is encrypted via SSL/TLS.public SSLSession sslSession()
public static ServerWebSocketHandshake newInstance(ServerWebSocketHandshake arg)
Copyright © 2024 Eclipse. All rights reserved.