public final class JsrHybi13Handshake extends Hybi13Handshake
Hybi13Handshake
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 |
---|
JsrHybi13Handshake(ConfiguredServerEndpoint config) |
Modifier and Type | Method and Description |
---|---|
WebSocketChannel |
createChannel(WebSocketHttpExchange exchange,
org.xnio.StreamConnection c,
ByteBufferPool buffers) |
boolean |
matches(WebSocketHttpExchange exchange) |
protected List<WebSocketExtension> |
selectedExtension(List<WebSocketExtension> extensionList) |
protected String |
supportedSubprotols(String[] requestedSubprotocolArray) |
protected void |
upgradeChannel(WebSocketHttpExchange exchange,
byte[] data) |
handshakeInternal
solve
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectExtensions, 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, ByteBufferPool buffers)
createChannel
in class Hybi13Handshake
public boolean matches(WebSocketHttpExchange exchange)
matches
in class Hybi07Handshake
protected String supportedSubprotols(String[] requestedSubprotocolArray)
supportedSubprotols
in class Handshake
protected List<WebSocketExtension> selectedExtension(List<WebSocketExtension> extensionList)
selectedExtension
in class Handshake
Copyright © 2019 JBoss by Red Hat. All rights reserved.