Class SimpleHttpUpgradeHandshake

  • All Implemented Interfaces:
    io.undertow.server.handlers.HttpUpgradeHandshake

    public class SimpleHttpUpgradeHandshake
    extends Object
    implements io.undertow.server.handlers.HttpUpgradeHandshake
    Utility class to create a server-side HTTP Upgrade handshake.
    Author:
    Stuart Douglas, Jeff Mesnil (c) 2014 Red Hat inc.
    • Constructor Detail

      • SimpleHttpUpgradeHandshake

        public SimpleHttpUpgradeHandshake​(String magicNumber,
                                          String keyHeader,
                                          String acceptHeader)
    • Method Detail

      • handleUpgrade

        public boolean handleUpgrade​(io.undertow.server.HttpServerExchange exchange)
                              throws IOException
        Specified by:
        handleUpgrade in interface io.undertow.server.handlers.HttpUpgradeHandshake
        Throws:
        IOException