Modifier and Type | Class and Description |
---|---|
class |
ServletWebSocketHttpExchange |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketConnectionCallback.onConnect(WebSocketHttpExchange exchange,
WebSocketChannel channel)
Is called once the WebSocket connection is established, which means the handshake was successful.
|
Modifier and Type | Method and Description |
---|---|
abstract WebSocketChannel |
Handshake.createChannel(WebSocketHttpExchange exchange,
StreamConnection channel,
ByteBufferPool pool)
Create the
WebSocketChannel from the WebSocketHttpExchange |
protected static String |
Handshake.getWebSocketLocation(WebSocketHttpExchange exchange)
Return the full url of the websocket location of the given
WebSocketHttpExchange |
void |
Handshake.handshake(WebSocketHttpExchange exchange)
Issue the WebSocket upgrade
|
protected abstract void |
Handshake.handshakeInternal(WebSocketHttpExchange exchange) |
protected List<ExtensionFunction> |
Handshake.initExtensions(WebSocketHttpExchange exchange)
Create the
ExtensionFunction list associated with the negotiated extensions defined in the exchange's response. |
abstract boolean |
Handshake.matches(WebSocketHttpExchange exchange)
Return
true if this implementation can be used to issue a handshake. |
protected void |
Handshake.performUpgrade(WebSocketHttpExchange exchange)
Perform the upgrade using no payload
|
protected void |
Handshake.performUpgrade(WebSocketHttpExchange exchange,
byte[] data)
convenience method to perform the upgrade
|
protected void |
Handshake.selectExtensions(WebSocketHttpExchange exchange) |
protected void |
Handshake.selectSubprotocol(WebSocketHttpExchange exchange)
Selects the first matching supported sub protocol and add it the the headers of the exchange.
|
protected void |
Handshake.upgradeChannel(WebSocketHttpExchange exchange,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
WebSocketChannel |
Hybi07Handshake.createChannel(WebSocketHttpExchange exchange,
StreamConnection channel,
ByteBufferPool pool) |
protected void |
Hybi07Handshake.handshakeInternal(WebSocketHttpExchange exchange) |
boolean |
Hybi07Handshake.matches(WebSocketHttpExchange exchange) |
Modifier and Type | Method and Description |
---|---|
WebSocketChannel |
Hybi08Handshake.createChannel(WebSocketHttpExchange exchange,
StreamConnection channel,
ByteBufferPool pool) |
Modifier and Type | Method and Description |
---|---|
WebSocketChannel |
Hybi13Handshake.createChannel(WebSocketHttpExchange exchange,
StreamConnection channel,
ByteBufferPool pool) |
protected void |
Hybi13Handshake.handshakeInternal(WebSocketHttpExchange exchange) |
Modifier and Type | Class and Description |
---|---|
class |
AsyncWebSocketHttpServerExchange |
class |
BlockingWebSocketHttpServerExchange |
Copyright © 2017 JBoss by Red Hat. All rights reserved.