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_NUMBER
subprotocols
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)
Create the
WebSocketChannel from the WebSocketHttpExchange |
boolean |
matches(WebSocketHttpExchange exchange)
Return
true if this implementation can be used to issue a handshake. |
protected String |
supportedSubprotols(String[] requestedSubprotocolArray) |
protected void |
upgradeChannel(WebSocketHttpExchange exchange,
byte[] data) |
handshakeInternal
solve
getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, performUpgrade, performUpgrade, selectSubprotocol
public JsrHybi13Handshake(ConfiguredServerEndpoint config)
protected void upgradeChannel(WebSocketHttpExchange exchange, byte[] data)
upgradeChannel
in class Handshake
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, org.xnio.Pool<ByteBuffer> buffers)
Handshake
WebSocketChannel
from the WebSocketHttpExchange
createChannel
in class Hybi13Handshake
public boolean matches(WebSocketHttpExchange exchange)
Handshake
true
if this implementation can be used to issue a handshake.matches
in class Hybi07Handshake
protected String supportedSubprotols(String[] requestedSubprotocolArray)
supportedSubprotols
in class Handshake
Copyright © 2014 JBoss by Red Hat. All rights reserved.