Class JsrHybi13Handshake


  • public final class JsrHybi13Handshake
    extends io.undertow.websockets.core.protocol.version13.Hybi13Handshake
    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_NUMBER
      • Fields inherited from class io.undertow.websockets.core.protocol.Handshake

        allowExtensions, availableExtensions, subprotocols
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.undertow.websockets.core.WebSocketChannel createChannel​(io.undertow.websockets.spi.WebSocketHttpExchange exchange, org.xnio.StreamConnection c, io.undertow.connector.ByteBufferPool buffers)  
      boolean matches​(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.String supportedSubprotols​(java.lang.String[] requestedSubprotocolArray)  
      protected void upgradeChannel​(io.undertow.websockets.spi.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • upgradeChannel

        protected void upgradeChannel​(io.undertow.websockets.spi.WebSocketHttpExchange exchange,
                                      byte[] data)
        Overrides:
        upgradeChannel in class io.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:
        createChannel in class io.undertow.websockets.core.protocol.version13.Hybi13Handshake
      • matches

        public boolean matches​(io.undertow.websockets.spi.WebSocketHttpExchange exchange)
        Overrides:
        matches in class io.undertow.websockets.core.protocol.version07.Hybi07Handshake
      • supportedSubprotols

        protected java.lang.String supportedSubprotols​(java.lang.String[] requestedSubprotocolArray)
        Overrides:
        supportedSubprotols in class io.undertow.websockets.core.protocol.Handshake
      • selectedExtension

        protected java.util.List<io.undertow.websockets.WebSocketExtension> selectedExtension​(java.util.List<io.undertow.websockets.WebSocketExtension> extensionList)
        Overrides:
        selectedExtension in class io.undertow.websockets.core.protocol.Handshake