public final class JsrHybi08Handshake extends Hybi08Handshake
Hybi08Handshake
sub-class which takes care of match against the ServerEndpointConfig
and stored the config in the attributes for later usage.MAGIC_NUMBER
allowExtensions, availableExtensions, subprotocols
Constructor and Description |
---|
JsrHybi08Handshake(ConfiguredServerEndpoint config) |
Modifier and Type | Method and Description |
---|---|
WebSocketChannel | createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool 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
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol
public JsrHybi08Handshake(ConfiguredServerEndpoint config)
protected void upgradeChannel(WebSocketHttpExchange exchange, byte[] data)
upgradeChannel
in class Handshake
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers)
Handshake
WebSocketChannel
from the WebSocketHttpExchange
createChannel
in class Hybi08Handshake
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 © 2017 JBoss by Red Hat. All rights reserved.