Class JsrHybi13Handshake
java.lang.Object
io.undertow.websockets.core.protocol.Handshake
io.undertow.websockets.core.protocol.version07.Hybi07Handshake
io.undertow.websockets.core.protocol.version13.Hybi13Handshake
io.undertow.websockets.jsr.handshake.JsrHybi13Handshake
Hybi13Handshake 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_NUMBERFields inherited from class io.undertow.websockets.core.protocol.Handshake
allowExtensions, availableExtensions, subprotocols -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers) booleanmatches(WebSocketHttpExchange exchange) protected List<WebSocketExtension>selectedExtension(List<WebSocketExtension> extensionList) protected StringsupportedSubprotols(String[] requestedSubprotocolArray) protected voidupgradeChannel(WebSocketHttpExchange exchange, byte[] data) Methods inherited from class io.undertow.websockets.core.protocol.version13.Hybi13Handshake
handshakeInternalMethods inherited from class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
solveMethods inherited from class io.undertow.websockets.core.protocol.Handshake
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectExtensions, selectSubprotocol
-
Constructor Details
-
JsrHybi13Handshake
-
-
Method Details
-
upgradeChannel
- Overrides:
upgradeChannelin classHandshake
-
createChannel
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers) - Overrides:
createChannelin classHybi13Handshake
-
matches
- Overrides:
matchesin classHybi07Handshake
-
supportedSubprotols
- Overrides:
supportedSubprotolsin classHandshake
-
selectedExtension
- Overrides:
selectedExtensionin classHandshake
-