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
ConstructorsModifierConstructorDescriptionprotectedHybi07Handshake(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 theWebSocketChannelfrom theWebSocketHttpExchangeprotected voidhandshakeInternal(WebSocketHttpExchange exchange) booleanmatches(WebSocketHttpExchange exchange) Returntrueif this implementation can be used to issue a handshake.protected final StringMethods 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:HandshakeReturntrueif this implementation can be used to issue a handshake. -
handshakeInternal
- Specified by:
handshakeInternalin classHandshake
-
solve
- Throws:
NoSuchAlgorithmException
-
createChannel
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Description copied from class:HandshakeCreate theWebSocketChannelfrom theWebSocketHttpExchange- Specified by:
createChannelin classHandshake
-