Hybi08Handshake, Hybi13Handshakepublic class Hybi07Handshake extends Handshake
| Modifier and Type | Field | Description |
|---|---|---|
static String |
MAGIC_NUMBER |
allowExtensions, availableExtensions, subprotocols| Modifier | Constructor | Description |
|---|---|---|
|
Hybi07Handshake() |
|
protected |
Hybi07Handshake(WebSocketVersion version,
Set<String> subprotocols,
boolean allowExtensions) |
|
|
Hybi07Handshake(Set<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 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 © 2018. All rights reserved.