Hybi08Handshake
, Hybi13Handshake
public class Hybi07Handshake extends Handshake
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
MAGIC_NUMBER |
allowExtensions, availableExtensions, subprotocols
Modifier | Constructor | Description |
---|---|---|
|
Hybi07Handshake() |
|
protected |
Hybi07Handshake(WebSocketVersion version,
java.util.Set<java.lang.String> subprotocols,
boolean allowExtensions) |
|
|
Hybi07Handshake(java.util.Set<java.lang.String> subprotocols,
boolean allowExtensions) |
Modifier and Type | Method | 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 java.lang.String |
solve(java.lang.String nonceBase64) |
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol, supportedSubprotols, upgradeChannel
public static final java.lang.String MAGIC_NUMBER
protected Hybi07Handshake(WebSocketVersion version, java.util.Set<java.lang.String> subprotocols, boolean allowExtensions)
public Hybi07Handshake(java.util.Set<java.lang.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 java.lang.String solve(java.lang.String nonceBase64) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool)
Handshake
WebSocketChannel
from the WebSocketHttpExchange
createChannel
in class Handshake
Copyright © 2018. All rights reserved.