public class Hybi00Handshake extends Handshake
subprotocols| Constructor and Description |
|---|
Hybi00Handshake() |
Hybi00Handshake(Set<String> subprotocols) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketChannel |
createChannel(WebSocketHttpExchange exchange,
org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> pool)
Create the
WebSocketChannel from the HttpServerExchange |
protected static long |
decodeKey(String encoded) |
protected void |
handshakeInternal(WebSocketHttpExchange exchange) |
boolean |
matches(WebSocketHttpExchange exchange)
Return
true if this implementation can be used to issue a handshake. |
protected static byte[] |
solve(String hashAlgorithm,
long key1,
long key2,
byte[] key3) |
protected static byte[] |
solve(String hashAlgorithm,
String encodedKey1,
String encodedKey2,
byte[] key3) |
getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, performUpgrade, performUpgrade, selectSubprotocol, supportedSubprotols, upgradeChannelprotected void handshakeInternal(WebSocketHttpExchange exchange)
handshakeInternal in class Handshakepublic boolean matches(WebSocketHttpExchange exchange)
Handshaketrue if this implementation can be used to issue a handshake.public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, org.xnio.Pool<ByteBuffer> pool)
HandshakeWebSocketChannel from the HttpServerExchangecreateChannel in class Handshakeprotected static byte[] solve(String hashAlgorithm, String encodedKey1, String encodedKey2, byte[] key3)
protected static byte[] solve(String hashAlgorithm, long key1, long key2, byte[] key3)
protected static long decodeKey(String encoded)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.