public class Hybi07Handshake extends Handshake
| Modifier and Type | Field and Description |
|---|---|
static String | MAGIC_NUMBER |
allowExtensions, availableExtensions, subprotocols| Modifier | Constructor and Description |
|---|---|
| Hybi07Handshake() |
| Hybi07Handshake(Set<String> subprotocols, boolean allowExtensions) |
protected | Hybi07Handshake(WebSocketVersion version, Set<String> subprotocols, boolean allowExtensions) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketChannel | createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Create the WebSocketChannel from the WebSocketHttpExchange |
protected void | handshakeInternal(WebSocketHttpExchange exchange) |
boolean | matches(WebSocketHttpExchange exchange) Return true if this implementation can be used to issue a handshake. |
protected String | solve(String nonceBase64) |
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol, supportedSubprotols, upgradeChannelpublic static final String MAGIC_NUMBER
protected Hybi07Handshake(WebSocketVersion version, Set<String> subprotocols, boolean allowExtensions)
public Hybi07Handshake()
public boolean matches(WebSocketHttpExchange exchange)
Handshaketrue if this implementation can be used to issue a handshake.protected void handshakeInternal(WebSocketHttpExchange exchange)
handshakeInternal in class Handshakeprotected final String solve(String nonceBase64) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool)
HandshakeWebSocketChannel from the WebSocketHttpExchangecreateChannel in class HandshakeCopyright © 2020 JBoss by Red Hat. All rights reserved.