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
-
public final class JsrHybi13Handshake extends Hybi13Handshake
Hybi13Handshakesub-class which takes care of match against theServerEndpointConfigand 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 Constructor Description JsrHybi13Handshake(ConfiguredServerEndpoint config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketChannelcreateChannel(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
handshakeInternal
-
Methods inherited from class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
solve
-
Methods inherited from class io.undertow.websockets.core.protocol.Handshake
addExtension, getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation, handshake, initExtensions, performUpgrade, performUpgrade, selectExtensions, selectSubprotocol
-
-
-
-
Constructor Detail
-
JsrHybi13Handshake
public JsrHybi13Handshake(ConfiguredServerEndpoint config)
-
-
Method Detail
-
upgradeChannel
protected void upgradeChannel(WebSocketHttpExchange exchange, byte[] data)
- Overrides:
upgradeChannelin classHandshake
-
createChannel
public WebSocketChannel createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection c, ByteBufferPool buffers)
- Overrides:
createChannelin classHybi13Handshake
-
matches
public boolean matches(WebSocketHttpExchange exchange)
- Overrides:
matchesin classHybi07Handshake
-
supportedSubprotols
protected String supportedSubprotols(String[] requestedSubprotocolArray)
- Overrides:
supportedSubprotolsin classHandshake
-
selectedExtension
protected List<WebSocketExtension> selectedExtension(List<WebSocketExtension> extensionList)
- Overrides:
selectedExtensionin classHandshake
-
-