public final class JsrHybi13Handshake extends Hybi13Handshake
Hybi13Handshake sub-class which takes care of match against the javax.websocket.server.ServerEndpointConfiguration and
stored the config in the attributes for later usage.allowExtensions, MAGIC_NUMBERsubprotocols| Constructor and Description |
|---|
JsrHybi13Handshake(ConfiguredServerEndpoint config) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketChannel |
createChannel(WebSocketHttpExchange exchange,
org.xnio.StreamConnection c,
org.xnio.Pool<ByteBuffer> buffers) |
boolean |
matches(WebSocketHttpExchange exchange) |
protected String |
supportedSubprotols(String[] requestedSubprotocolArray) |
protected void |
upgradeChannel(WebSocketHttpExchange exchange,
byte[] data) |
handshakeInternalsolvegetHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, performUpgrade, performUpgrade, selectSubprotocolpublic JsrHybi13Handshake(ConfiguredServerEndpoint config)
protected void upgradeChannel(WebSocketHttpExchange exchange, byte[] data)
upgradeChannel in class Handshakepublic WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, org.xnio.Pool<ByteBuffer> buffers)
createChannel in class Hybi13Handshakepublic boolean matches(WebSocketHttpExchange exchange)
matches in class Hybi07Handshakeprotected String supportedSubprotols(String[] requestedSubprotocolArray)
supportedSubprotols in class HandshakeCopyright © 2013 JBoss by Red Hat. All Rights Reserved.