Class Hybi07Handshake
java.lang.Object
io.undertow.websockets.core.protocol.Handshake
io.undertow.websockets.core.protocol.version07.Hybi07Handshake
- Direct Known Subclasses:
Hybi08Handshake
,Hybi13Handshake
The handshaking protocol implementation for Hybi-07.
- Author:
- Mike Brock
-
Field Summary
FieldsFields inherited from class io.undertow.websockets.core.protocol.Handshake
allowExtensions, availableExtensions, subprotocols
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Hybi07Handshake
(WebSocketVersion version, Set<String> subprotocols, boolean allowExtensions) Hybi07Handshake
(Set<String> subprotocols, boolean allowExtensions) -
Method Summary
Modifier and TypeMethodDescriptioncreateChannel
(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Create theWebSocketChannel
from theWebSocketHttpExchange
protected void
handshakeInternal
(WebSocketHttpExchange exchange) boolean
matches
(WebSocketHttpExchange exchange) Returntrue
if this implementation can be used to issue a handshake.protected final String
Methods inherited from class io.undertow.websockets.core.protocol.Handshake
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectedExtension, selectExtensions, selectSubprotocol, supportedSubprotols, upgradeChannel
-
Field Details
-
MAGIC_NUMBER
- See Also:
-
-
Constructor Details
-
Hybi07Handshake
protected Hybi07Handshake(WebSocketVersion version, Set<String> subprotocols, boolean allowExtensions) -
Hybi07Handshake
-
Hybi07Handshake
public Hybi07Handshake()
-
-
Method Details
-
matches
Description copied from class:Handshake
Returntrue
if this implementation can be used to issue a handshake. -
handshakeInternal
- Specified by:
handshakeInternal
in classHandshake
-
solve
- Throws:
NoSuchAlgorithmException
-
createChannel
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Description copied from class:Handshake
Create theWebSocketChannel
from theWebSocketHttpExchange
- Specified by:
createChannel
in classHandshake
-