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, upgradeChannel
public static final String MAGIC_NUMBER
protected Hybi07Handshake(WebSocketVersion version, Set<String> subprotocols, boolean allowExtensions)
public Hybi07Handshake()
public boolean matches(WebSocketHttpExchange exchange)
Handshake
true
if this implementation can be used to issue a handshake.protected void handshakeInternal(WebSocketHttpExchange exchange)
handshakeInternal
in class Handshake
protected final String solve(String nonceBase64) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool)
Handshake
WebSocketChannel
from the WebSocketHttpExchange
createChannel
in class Handshake
Copyright © 2017 JBoss by Red Hat. All rights reserved.