public final class JsrHybi07Handshake
extends io.undertow.websockets.core.protocol.version07.Hybi07Handshake
Hybi07Handshake
sub-class which takes care of match against the ServerEndpointConfig
and
stored the config in the attributes for later usage.Constructor | Description |
---|---|
JsrHybi07Handshake(ConfiguredServerEndpoint config) |
Modifier and Type | Method | Description |
---|---|---|
io.undertow.websockets.core.WebSocketChannel |
createChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange,
org.xnio.StreamConnection c,
io.undertow.connector.ByteBufferPool buffers) |
|
boolean |
matches(io.undertow.websockets.spi.WebSocketHttpExchange exchange) |
|
protected java.lang.String |
supportedSubprotols(java.lang.String[] requestedSubprotocolArray) |
|
protected void |
upgradeChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange,
byte[] data) |
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol
public JsrHybi07Handshake(ConfiguredServerEndpoint config)
protected void upgradeChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, byte[] data)
upgradeChannel
in class io.undertow.websockets.core.protocol.Handshake
public io.undertow.websockets.core.WebSocketChannel createChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, org.xnio.StreamConnection c, io.undertow.connector.ByteBufferPool buffers)
createChannel
in class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
public boolean matches(io.undertow.websockets.spi.WebSocketHttpExchange exchange)
matches
in class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
protected java.lang.String supportedSubprotols(java.lang.String[] requestedSubprotocolArray)
supportedSubprotols
in class io.undertow.websockets.core.protocol.Handshake
Copyright © 2018. All rights reserved.