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, upgradeChannel
protected void handshakeInternal(WebSocketHttpExchange exchange)
handshakeInternal
in class Handshake
public boolean matches(WebSocketHttpExchange exchange)
Handshake
true
if this implementation can be used to issue a handshake.public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, org.xnio.Pool<ByteBuffer> pool)
Handshake
WebSocketChannel
from the HttpServerExchange
createChannel
in class Handshake
protected 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.