Class Http2UpgradeHandler

  • All Implemented Interfaces:
    HttpHandler

    public class Http2UpgradeHandler
    extends java.lang.Object
    implements HttpHandler
    Upgrade listener for HTTP2, this allows connections to be established using the upgrade mechanism as detailed in Section 3.2. This should always be the first handler in a handler chain.
    Author:
    Stuart Douglas
    • Constructor Detail

      • Http2UpgradeHandler

        public Http2UpgradeHandler​(HttpHandler next)
      • Http2UpgradeHandler

        public Http2UpgradeHandler​(HttpHandler next,
                                   java.lang.String... upgradeStrings)
    • Method Detail

      • handleRequest

        public void handleRequest​(HttpServerExchange exchange)
                           throws java.lang.Exception
        Description copied from interface: HttpHandler
        Handle the request.
        Specified by:
        handleRequest in interface HttpHandler
        Parameters:
        exchange - the HTTP request/response exchange
        Throws:
        java.lang.Exception