public final class JsrHybi08Handshake extends Hybi08Handshake
Hybi08Handshake sub-class which takes care of match against the ServerEndpointConfig and stored the config in the attributes for later usage.MAGIC_NUMBERallowExtensions, availableExtensions, subprotocols| Constructor and Description |
|---|
JsrHybi08Handshake(ConfiguredServerEndpoint config) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketChannel | createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers) Create the WebSocketChannel from the WebSocketHttpExchange |
boolean | matches(WebSocketHttpExchange exchange) Return true if this implementation can be used to issue a handshake. |
protected String | supportedSubprotols(String[] requestedSubprotocolArray) |
protected void | upgradeChannel(WebSocketHttpExchange exchange, byte[] data) |
handshakeInternal, solveaddExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocolpublic JsrHybi08Handshake(ConfiguredServerEndpoint config)
protected void upgradeChannel(WebSocketHttpExchange exchange, byte[] data)
upgradeChannel in class Handshakepublic WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers)
HandshakeWebSocketChannel from the WebSocketHttpExchangecreateChannel in class Hybi08Handshakepublic boolean matches(WebSocketHttpExchange exchange)
Handshaketrue if this implementation can be used to issue a handshake.matches in class Hybi07Handshakeprotected String supportedSubprotols(String[] requestedSubprotocolArray)
supportedSubprotols in class HandshakeCopyright © 2020 JBoss by Red Hat. All rights reserved.