Class JsrHybi08Handshake
java.lang.Object
io.undertow.websockets.core.protocol.Handshake
io.undertow.websockets.core.protocol.version07.Hybi07Handshake
io.undertow.websockets.core.protocol.version08.Hybi08Handshake
io.undertow.websockets.jsr.handshake.JsrHybi08Handshake
public final class JsrHybi08Handshake
extends io.undertow.websockets.core.protocol.version08.Hybi08Handshake
Hybi08Handshake
sub-class which takes care of match against the ServerEndpointConfig
and
stored the config in the attributes for later usage.- Author:
- Norman Maurer
-
Field Summary
Fields inherited from class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
MAGIC_NUMBER
Fields inherited from class io.undertow.websockets.core.protocol.Handshake
allowExtensions, availableExtensions, subprotocols
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.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 String
supportedSubprotols
(String[] requestedSubprotocolArray) protected void
upgradeChannel
(io.undertow.websockets.spi.WebSocketHttpExchange exchange, byte[] data) Methods inherited from class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
handshakeInternal, solve
Methods inherited from class io.undertow.websockets.core.protocol.Handshake
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol
-
Constructor Details
-
JsrHybi08Handshake
-
-
Method Details
-
upgradeChannel
protected void upgradeChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, byte[] data) - Overrides:
upgradeChannel
in classio.undertow.websockets.core.protocol.Handshake
-
createChannel
public io.undertow.websockets.core.WebSocketChannel createChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, org.xnio.StreamConnection c, io.undertow.connector.ByteBufferPool buffers) - Overrides:
createChannel
in classio.undertow.websockets.core.protocol.version08.Hybi08Handshake
-
matches
public boolean matches(io.undertow.websockets.spi.WebSocketHttpExchange exchange) - Overrides:
matches
in classio.undertow.websockets.core.protocol.version07.Hybi07Handshake
-
supportedSubprotols
- Overrides:
supportedSubprotols
in classio.undertow.websockets.core.protocol.Handshake
-