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 io.undertow.websockets.core.protocol.version13.Hybi13HandshakeHybi13Handshakesub-class which takes care of match against theServerEndpointConfigand stored the config in the attributes for later usage.- Author:
- Norman Maurer
-
-
Constructor Summary
Constructors Constructor Description JsrHybi13Handshake(ConfiguredServerEndpoint config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.websockets.core.WebSocketChannelcreateChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, org.xnio.StreamConnection c, io.undertow.connector.ByteBufferPool buffers)booleanmatches(io.undertow.websockets.spi.WebSocketHttpExchange exchange)protected java.util.List<io.undertow.websockets.WebSocketExtension>selectedExtension(java.util.List<io.undertow.websockets.WebSocketExtension> extensionList)protected java.lang.StringsupportedSubprotols(java.lang.String[] requestedSubprotocolArray)protected voidupgradeChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, byte[] data)-
Methods inherited from class io.undertow.websockets.core.protocol.version13.Hybi13Handshake
handshakeInternal
-
-
-
-
Constructor Detail
-
JsrHybi13Handshake
public JsrHybi13Handshake(ConfiguredServerEndpoint config)
-
-
Method Detail
-
upgradeChannel
protected void upgradeChannel(io.undertow.websockets.spi.WebSocketHttpExchange exchange, byte[] data)- Overrides:
upgradeChannelin 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:
createChannelin classio.undertow.websockets.core.protocol.version13.Hybi13Handshake
-
matches
public boolean matches(io.undertow.websockets.spi.WebSocketHttpExchange exchange)
- Overrides:
matchesin classio.undertow.websockets.core.protocol.version07.Hybi07Handshake
-
supportedSubprotols
protected java.lang.String supportedSubprotols(java.lang.String[] requestedSubprotocolArray)
- Overrides:
supportedSubprotolsin classio.undertow.websockets.core.protocol.Handshake
-
selectedExtension
protected java.util.List<io.undertow.websockets.WebSocketExtension> selectedExtension(java.util.List<io.undertow.websockets.WebSocketExtension> extensionList)
- Overrides:
selectedExtensionin classio.undertow.websockets.core.protocol.Handshake
-
-