public class Hybi07Handshake extends Handshake
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowExtensions |
static String |
MAGIC_NUMBER |
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,
org.xnio.Pool<ByteBuffer> 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) |
getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, performUpgrade, performUpgrade, selectSubprotocol, supportedSubprotols, upgradeChannel
public static final String MAGIC_NUMBER
protected final boolean allowExtensions
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, org.xnio.Pool<ByteBuffer> pool)
Handshake
WebSocketChannel
from the WebSocketHttpExchange
createChannel
in class Handshake
Copyright © 2014 JBoss by Red Hat. All rights reserved.